:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --primary-color: #38bdf8;
    /* Light Blue */
    --secondary-color: #818cf8;
    /* Indigo */
    --accent-color: #f472b6;
    /* Pink */
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --gradient-2: linear-gradient(45deg, #f472b6, #818cf8);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn.primary {
    background: var(--gradient-1);
    color: #fff;
    border: none;
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
}

.btn.secondary:hover {
    background: rgba(129, 140, 248, 0.1);
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    width: 100%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 10% 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hello-pill {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.typewriter-container {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tech-stack-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-muted);
}

.tech-stack-icons i:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    transition: transform 0.3s;
}

/* Hero Visuals - Code Card */
.code-cardglass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    width: 350px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.code-cardglass:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.card-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background-color: #ef4444;
}

.yellow {
    background-color: #f59e0b;
}

.green {
    background-color: #22c55e;
}

.card-body pre {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    overflow-x: auto;
}

.keyword {
    color: #c084fc;
}

/* Purple */
.class-name {
    color: #fbbf24;
}

/* Amber */
.string {
    color: #86efac;
}

/* Green */
.function {
    color: #60a5fa;
}

/* Blue */

/* Background Blobs */
.blob,
.blob-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
    animation: blob-bounce 10s infinite alternate;
}

.blob {
    top: -10%;
    right: 10%;
    background: var(--primary-color);
}

.blob-2 {
    bottom: -10%;
    left: 20%;
    background: var(--accent-color);
    animation-delay: 5s;
}

@keyframes blob-bounce {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats-container {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Skills Section */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-overlay {
    height: 100%;
    width: 100%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Project Images */
.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}


.project-content {
    position: relative;
    width: 100%;
    padding: 2rem;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-tech {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.link-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.link-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info ul {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.contact-info li i {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gradient-1);
    transform: translateY(-3px);
}

.custom-icon {
    width: 20px;
    height: 20px;
    fill: var(--text-color);
    transition: fill 0.3s;
}

.social-links a:hover .custom-icon {
    fill: #fff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column-reverse;
        /* Visual on top on mobile? No, commonly text on top. Let's keep normal flow but stack. Or maybe visual on bottom. Let's try column. */
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        margin-bottom: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .blob {
        display: none;
    }

    /* Simplify on mobile for performance */

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Mobile menu needed */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Profile Image */
.profile-container {
    position: relative;
    z-index: 2;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 968px) {
    .profile-img {
        width: 250px;
        height: 250px;
    }
}