:root{
    --bg: #0d0d0d;
    --accent: #ffce00;
    --nav-height: 64px;
    --max-width: 1200px;
}

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Poppins", sans-serif;
        }

/* Prevent fixed navbar from covering content */
body { padding-top: var(--nav-height); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

/* Accessible focus outlines */
:focus {
    outline: 3px solid rgba(255,206,0,0.18);
    outline-offset: 2px;
}

/* Improve tap target sizes on small devices */
button.menu-btn, nav ul li a, .hero-buttons a, .project-footer .btn, .resume-btn, .contact-form button{
    min-height: 44px;
}

/* Services grid responsive */
.services-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}
@media (max-width: 900px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .services-grid{ grid-template-columns: 1fr; } }

/* Contact layout */
.contact-container{ display:grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items:start; }
@media (max-width: 900px){ .contact-container{ grid-template-columns:1fr; } }

/* Projects grid fine-tuning */
.projects-grid{ gap: 20px; }
@media (min-width: 1200px){ .projects-grid{ grid-template-columns: repeat(3, 1fr); } }

/* Make nav links wrap neatly on medium screens */
nav ul { flex-wrap: wrap; }

/* Reduce hero padding on small devices further */
@media (max-width: 420px){
    .hero { padding: 80px 3% 30px; }
    .hero-content { width: 100%; }
}

/* Small accessibility tweak: increase contrast for interactive hover */
nav ul li a:hover, .hero-buttons a:hover { filter: brightness(0.96); }

        nav {
            width: 100%;
            background: #0d0d0d;      /* Dark background */
            padding: 18px 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }

        nav .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 20px;
            font-weight: 600;
            color: #ffffff;
            cursor: pointer;
            letter-spacing: 1px;
        }

        nav .logo img {
            width: 44px;
            height: 44px;
            object-fit: cover;
            border-radius: 50%;
            display: block;
        }

        nav ul {
            display: flex;
            gap: 35px;
        }

        nav ul li {
            list-style: none;
        }

        nav ul li a {
            text-decoration: none;
            color: #ffffff;
            font-size: 16px;
            font-weight: 400;
            transition: 0.3s ease-in-out;
            padding: 8px 14px;
            border-radius: 6px;
        }

        nav ul li a:hover {
            background: #ffffff;
            color: #000;
        }

        /* Mobile Menu */
        .menu-btn {
            display: none;
            font-size: 30px;
            color: #fff;
            cursor: pointer;
            background: transparent;
            border: none;
            padding: 6px 10px;
        }

        @media (max-width: 1024px) {
            nav { padding: 15px 30px; }
        }

        @media (max-width: 768px) {
            nav {
                padding: 12px 20px;
            }

            nav ul {
                display: none;
                position: absolute;
                top: calc(var(--nav-height) + 6px);
                right: 16px;
                background: #111;
                width: 240px;
                max-width: calc(100% - 32px);
                flex-direction: column;
                padding: 8px 6px;
                border-radius: 8px;
                box-shadow: 0 5px 18px rgba(0,0,0,0.6);
                transition: opacity 180ms ease, transform 180ms ease;
                opacity: 0;
                transform: translateY(-6px);
                pointer-events: none;
            }

            nav ul.show {
                display: flex;
                opacity: 1;
                transform: translateY(0);
                pointer-events: auto;
            }

            nav ul li a { display:block; padding: 10px 12px; }

            .menu-btn { display: block; }
        }

        /* Very small phones: full-width menu */
        @media (max-width: 480px) {
            nav ul {
                left: 0; right: 0; width: auto; border-radius: 0; top: calc(var(--nav-height));
                padding: 6px 0;
            }
            nav ul li a { text-align:center; padding: 14px 18px; }
            .menu-btn { font-size: 26px; }
        }
        .hero {
            width: 100%;
            min-height: calc(100vh - var(--nav-height));
            background: var(--bg);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 8%;
            margin-top: 0; /* navbar handled by body padding */
            gap: 16px;
            flex-wrap: wrap;
            align-items: center;
        }

    .hero-content {
        max-width: 600px;
        animation: fadeIn 1.5s ease-in-out;
        flex: 1 1 320px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-content h3 {
        font-size: 22px;
        font-weight: 300;
        letter-spacing: 1px;
    }

    .hero-content h1 {
        font-weight: 700;
        margin: 10px 0;
        letter-spacing: 1px;
        color: var(--accent);
        font-size: clamp(30px, 4.8vw, 55px);
    }

    .typing {
        border-right: 3px solid #fff;
        white-space: nowrap;
        overflow: hidden;
        width: 0;
        animation: typing 3s steps(20, end) forwards, blink 0.7s infinite;
    }

    @keyframes typing {
        from { width: 0 }
        to { width: 75% }
    }

    @keyframes blink {
        50% { border-color: transparent }
    }

    .hero-content p {
        font-size: 17px;
        margin: 15px 0 25px;
        line-height: 1.6;
        color: #ddd;
    }

    .hero-buttons a {
        text-decoration: none;
        color: #fff;
        background: #ffce00;
        padding: 12px 28px;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 500;
        margin-right: 12px;
        transition: 0.3s;
    }

    .hero-buttons a:hover {
        background: #fff;
        color: #000;
    }

    .hero {
        width: 100%;
        /* use compact vertical spacing instead of full-viewport height */
        min-height: auto;
        background: var(--bg);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 28px 8%;
        margin-top: 0;
        gap: 16px;
        flex-wrap: wrap;
    }

    .hero-img {
        flex: 0 0 150px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-img img {
        width: 360px;
        max-width: 42vw;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: 50%;
        border: 6px solid var(--accent);
        box-shadow: 0 0 20px rgba(255, 206, 0, 0.5);
        animation: fadeInUp 1.5s ease-in-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-20px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(40px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    
    @media (max-width: 850px) {
        .hero {
            flex-direction: column;
            text-align: center;
            height: auto;
            padding: 100px 5% 60px;
        }
        .hero-img img {
            margin-top: 25px;
            width: 280px;
            height: 280px;
        }
        .hero-content {
            order: 1;
            text-align: center;
            align-items: center;
        }
        .hero-img { order: 2; margin-top: 18px; }
        .typing {
            animation: typing 2.5s steps(18, end) forwards, blink 0.7s infinite;
        }
    }

    /* Ensure buttons align properly */
    .hero-buttons {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
    }
    @media (max-width: 850px) {
        .hero-buttons { justify-content: center; }
    }
    /* Additional small-screen tweaks */
    @media (max-width: 480px) {
        .hero { padding: 90px 4% 40px; margin-top: calc(var(--nav-height) + 4px); }
        .hero-img img { width: 180px; height: 180px; }
        .hero-content h3 { font-size: 16px; }
        .hero-content p { font-size: 15px; }
        .hero-buttons a { display: inline-block; margin-bottom: 8px; }
    }

    /* Responsive typography and image defaults */
    :root{font-size:16px}
    html{font-size:100%}
    h1{font-size:clamp(28px,5vw,55px)}
    h2{font-size:clamp(20px,3vw,40px)}
    img{max-width:100%;height:auto;display:block}
    .about {
        width: 100%;
        padding: 56px 6%;
        background: #111;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
    }

    .about-img img {
        width: 320px;
        height: 320px;
        object-fit: cover;
        border-radius: 16px;
        border: 4px solid #ffce00;
        box-shadow: 0 0 14px rgba(255, 206, 0, 0.45);
        animation: fadeInLeft 1.2s ease;
        display: block;
    }

    .about-content {
        max-width: 650px;
        animation: fadeInRight 1.5s ease;
    }

    .about-content h2 {
        font-size: 40px;
        margin-bottom: 15px;
        color: #ffce00;
    }

    .about-content p {
        font-size: 17px;
        margin-bottom: 15px;
        line-height: 1.7;
        color: #ddd;
    }

    .about-content strong {
        color: #fff;
    }

    @keyframes fadeInLeft {
        from { opacity: 0; transform: translateX(-40px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    @keyframes fadeInRight {
        from { opacity: 0; transform: translateX(40px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* Responsive */
    @media(max-width: 900px) {
        .about {
            flex-direction: column;
            text-align: center;
        }
        .about-img img {
            margin-bottom: 25px;
        }
    }
    .skills {
        width: 100%;
        padding: 80px 8%;
        background: #0d0d0d;
        color: #fff;
    }

    .skills h2 {
        text-align: center;
        font-size: 40px;
        margin-bottom: 40px;
        color: #ffce00;
    }

    .skills-container {
        display: flex;
        justify-content: space-between;
        gap: 40px;
        flex-wrap: wrap;
    }

    .skills-box {
        flex: 1;
        min-width: 320px;
        background: #111;
        padding: 25px;
        border-radius: 15px;
        box-shadow: 0 0 15px rgba(255, 206, 0, 0.1);
        animation: fadeInUp 1.3s ease;
    }

    .skills-box h3 {
        font-size: 26px;
        margin-bottom: 20px;
        color: #ffce00;
    }

    .skill {
        margin-bottom: 22px;
    }

    .skill .label {
        display: flex;
        justify-content: space-between;
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 7px;
    }

    .skill i {
        color: #ffce00;
        margin-right: 8px;
        font-size: 18px;
    }

    .progress {
        width: 100%;
        background: #333;
        height: 12px;
        border-radius: 10px;
        overflow: visible;
        position: relative;
    }

    .progress-bar {
        height: 12px;
        background: #ffce00;
        width: 0;
        border-radius: 10px;
        animation: fillBar 2.2s forwards;
        position: relative;
    }

    .progress-percent {
        position: absolute;
        top: -27px;
        right: 0;
        font-size: 14px;
        background: #ffce00;
        color: #111;
        padding: 3px 7px;
        border-radius: 5px;
        font-weight: 600;
    }

    @keyframes fillBar {
        from { width: 0; }
        to { width: var(--width); }
    }

    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(40px); }
        to { opacity: 1; transform: translateY(0); }
    }

    
    @media (max-width: 900px) {
        .skills-container {
            flex-direction: column;
        }
    }
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
    body { background: #0d0d0d; color: #fff; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

    /* Container */
    .container {
      width: min(1200px, 92%);
      margin: 60px auto;
    }

    h2.section-title {
      text-align: center;
      color: #ffce00;
      font-size: 36px;
      margin-bottom: 28px;
      letter-spacing: 0.2px;
    }

    /* Grid */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
      align-items: start;
    }

    /* Responsive grid */
    @media (max-width: 992px) {
      .projects-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 640px) {
      .projects-grid { grid-template-columns: 1fr; }
    }

    /* Card */
    .project-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
      border: 1px solid rgba(255,255,255,0.04);
      border-radius: 12px;
      overflow: hidden;
      transition: transform 280ms ease, box-shadow 280ms ease;
      display: flex;
      flex-direction: column;
      min-height: 100%;
    }

    .project-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 6px 18px rgba(255,206,0,0.06);
    }

    .project-thumb {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
      background: #222;
    }

    .project-body {
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      flex: 1;
    }

    .project-title {
      font-size: 20px;
      color: #fff;
      font-weight: 600;
    }

    .project-desc {
      color: #d8d8d8;
      font-size: 14.5px;
      line-height: 1.5;
      flex: 1;
    }

    .tech-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 8px;
    }

    .tech-item {
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.02);
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 13px;
      color: #f2f2f2;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .project-footer {
      display: flex;
      gap: 10px;
      margin-top: 12px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      font-weight: 600;
      padding: 9px 12px;
      border-radius: 10px;
      font-size: 14px;
      transition: transform 150ms ease;
      border: none;
      cursor: pointer;
    }

    .btn:active { transform: translateY(1px); }

    .btn-demo {
      background: linear-gradient(90deg,#ffce00,#ffc107);
      color: #111;
      box-shadow: 0 6px 18px rgba(255,206,0,0.12);
    }

    .btn-github {
      background: rgba(255,255,255,0.04);
      color: #fff;
      border: 1px solid rgba(255,255,255,0.06);
    }
/* Services Section */
.services-section {
    padding: 70px 0;
    background: #0d0d0d;
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: #ffce00;
    margin-bottom: 40px;
}

/* Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Responsive grid */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Card */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 206, 0, 0.08);
    border-color: #ffce00;
}

/* Icon */
.service-icon {
    font-size: 45px;
    color: #ffce00;
    margin-bottom: 15px;
}

/* Title */
.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Text */
.service-card p {
    font-size: 15px;
    color: #e4e4e4;
    line-height: 1.5;
}
/* Experience Section */
.experience-section {
    padding: 70px 0;
    background: #0d0d0d;
    color: #fff;
}

/* Title */
.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    color: #ffce00;
    margin-bottom: 50px;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 0 auto;
    width: 90%;
    max-width: 850px;
}

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 3px;
    background: #2e2e2e;
    left: 50%;
    transform: translateX(-50%);
}

/* Item */
.timeline-item {
    width: 50%;
    padding: 20px 30px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

/* Circle Icon */
.timeline-icon {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffce00;
    color: #111;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    box-shadow: 0 0 12px rgba(255, 206, 0, 0.6);
}

/* Content Box */
.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: #ffce00;
}

/* Title inside box */
.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #fff;
}

/* Date */
.timeline-date {
    font-size: 14px;
    color: #ffce00;
    font-weight: 600;
}

/* Text */
.timeline-content p {
    margin-top: 10px;
    color: #e8e8e8;
    font-size: 15px;
    line-height: 1.5;
}

/* Responsive */
@media(max-width: 768px) {
    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        text-align: left !important;
        left: 0 !important;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0 !important;
    }

    .timeline-icon {
        left: 10px;
        transform: translateX(0);
    }
}
.resume-section {
    padding: 80px 10%;
    background: #000;  
    color: #fff;
    text-align: center;
}

.resume-section .section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f8d000;
}

.resume-text {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
    color: #ccc;
}

.resume-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #f8d000;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.resume-btn i {
    margin-right: 10px;
}

.resume-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}
.contact-section {
    padding: 80px 10%;
    background: #000;
    color: #fff;
}

.contact-section .section-title {
    font-size: 40px;
    text-align: center;
    color: #f8d000;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* CONTACT INFO */
.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    margin-bottom: 15px;
}

.info-item i {
    font-size: 22px;
    color: #f8d000;
}

.info-item a {
    color: #f8d000;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* CONTACT FORM */
.contact-form {
    flex: 1;
    min-width: 300px;
    background: #111;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.contact-form h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #f8d000;
    outline: none;
}

.contact-btn {
    width: 100%;
    padding: 15px;
    background: #f8d000;
    border: none;
    color: #000;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    font-weight: 600;
}

.contact-btn:hover {
    background: #fff;
    transform: translateY(-3px);
}

.contact-btn i {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}


    
