/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #1f2933;
    --muted: #4b5563;
    --blue: #2563eb;
    --blue-dark: #1e40af;
    --border: #000000;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px
}

/* ================= NAVBAR ================= */
.navbar {
    background: var(--card);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px
}

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

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px
}

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

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

/* ================= HERO ================= */
/* ================= PROFILE IMAGE ================= */
.profile-pic {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 5px solid var(--border);
    object-fit: cover;
    display: block;
}

/* ================= HERO ================= */
.hero {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--card), #e8f0ff);
    position: relative;
    z-index: 1;
}

/* HERO DARK MODE */
body.dark .hero {
    background: radial-gradient(circle at top left, #1e293b, #020617 70%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content h1 {
    font-size: 2.9rem;
}

.hero-content span {
    color: var(--blue);
}

.hero-content h2 {
    margin: 12px 0;
    color: var(--blue-dark);
}

.hero-content p {
    color: var(--muted);
}

/* DARK TEXT FIX */
body.dark .hero-content h1 span {
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark .hero-content h2 {
    color: #93c5fd;
}

body.dark .hero-content p {
    color: #cbd5f5;
}

/* ================= HERO BUTTONS ================= */
.hero-buttons {
    margin-top: 32px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

/* ================= BUTTONS (FINAL FIX) ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 26px;
    border-radius: 14px;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;

    border: none;
    outline: none;
    transition: all .35s ease;
}

/* PRIMARY */
.btn.primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    box-shadow: 0 16px 40px rgba(37, 99, 235, .45);
}

.btn.primary:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 22px 55px rgba(37, 99, 235, .6);
}

/* SECONDARY */
.btn.secondary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn.secondary:hover {
    background: #2563eb;
    color: #fff;
}

/* RESUME BUTTON */
.btn.resume-btn {
    background: #020617;
    color: #fff;
    border: 2px solid #020617;
}

.btn.resume-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* DARK MODE BUTTONS */
body.dark .btn.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

body.dark .btn.secondary {
    color: #93c5fd;
    border-color: #93c5fd;
}

body.dark .btn.secondary:hover {
    background: #93c5fd;
    color: #020617;
}

body.dark .btn.resume-btn {
    background: #020617;
    border-color: #1e293b;
    color: #e5e7eb;
}

/* ================= SECTIONS SPACING ================= */
.skills,
.projects,
.contact {
    padding: 120px 0;
}

/* ================= MOBILE ================= */
@media(max-width:768px) {
    .hero-container {
        text-align: center;
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}
/* ================= SKILLS ================= */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
}

/* Skill category headings */
.skill-category {
    grid-column: 1/-1;
    margin: 40px 0 10px;
}

.skill-category h3 {
    font-size: 1.4rem;
    color: var(--blue);
    border-left: 4px solid var(--blue);
    padding-left: 12px;
}

body.dark .skill-category h3 {
    color: #93c5fd;
    border-color: #93c5fd;
}

.skill-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 36px 26px;
    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    transition: .45s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, transparent, var(--blue), transparent);
    opacity: 0;
    transition: .45s;
}

.skill-card:hover::before {
    opacity: .6
}

.skill-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 22px 50px rgba(37, 99, 235, .35)
}

.skill-card img {
    width: 56px;
    height: 56px;
    object-fit: contain
}

/* ================= PROJECTS ================= */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.project-card {
    width: 320px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: .45s ease;
}

.project-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 30px 65px rgba(37, 99, 235, .4);
}

.project-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.project-card h3 {
    text-align: center;
    margin-top: 18px;
}

.project-card p {
    text-align: center;
    color: var(--muted);
    margin-top: 6px;
}

.project-card a {
    margin: 18px auto 26px;
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

@media(max-width:768px) {
    .project-card {
        width: 100%;
        max-width: 360px;
    }
}
/* ================= CONTACT ================= */
.contact {
    padding: 150px 0;
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .18), transparent 45%),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, .18), transparent 45%),
        linear-gradient(180deg, transparent, rgba(37, 99, 235, .03));
}
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    padding: 52px 48px;

    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: 30px;
    border: 1.8px solid rgba(37, 99, 235, .35);

    display: flex;
    flex-direction: column;
    gap: 22px;

    box-shadow:
        0 35px 90px rgba(37, 99, 235, .25),
        inset 0 0 0 1px rgba(255, 255, 255, .5);

    transition: all .5s ease;
}
.contact-form:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow:
        0 50px 120px rgba(37, 99, 235, .4),
        inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.contact-form input,
.contact-form textarea {
    padding: 18px 20px;
    font-size: 15px;
    font-family: inherit;

    border-radius: 16px;
    border: 1.6px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .85);

    outline: none;
    transition: all .3s ease;
}

.contact-form textarea {
    resize: none;
    min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
    background: #fff;
}
.contact-form .btn {
    margin-top: 14px;
    padding: 16px 0;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: .5px;

    border-radius: 16px;
    cursor: pointer;

    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;

    box-shadow: 0 18px 45px rgba(37, 99, 235, .5);
    transition: all .35s ease;
}

.contact-form .btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 28px 70px rgba(37, 99, 235, .7);
}
body.dark .contact-form {
    background: rgba(2, 6, 23, .85);
    border-color: #1e293b;
    box-shadow: 0 40px 110px rgba(0, 0, 0, .6);
}

body.dark .contact-form input,
body.dark .contact-form textarea {
    background: #020617;
    border-color: #1e293b;
    color: #e5e7eb;
}

body.dark .contact-form input::placeholder,
body.dark .contact-form textarea::placeholder {
    color: #94a3b8;
}
@media(max-width:768px) {
    .contact-form {
        padding: 38px 28px;
    }
}
/* ================= FOOTER ================= */
footer {
    background: #020617;
    color: #fff;
    text-align: center;
    padding: 24px
}

/* ================= DARK MODE ================= */
body.dark {
    background: #020617;
    color: #e5e7eb
}

body.dark .navbar,
body.dark .skill-card,
body.dark .project-card,
body.dark .contact-form {
    background: #020617;
    border-color: #1e293b
}

body.dark p,
body.dark h1,
body.dark h2,
body.dark h3,
body.dark a {
    color: #e5e7eb
}

/* ================= DARK MODE BUTTON ================= */
.dark-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-size: 22px;
    padding: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #222;
    color: white;
    touch-action: manipulation;
   
}

/* ================= SCROLL REVEAL ================= */
.skill-card,
.project-card,
.contact-form {
    transform: translateY(40px);
    opacity: 0;
    transition: all .6s ease
}

.reveal {
    transform: translateY(0);
    opacity: 1
}

/* ================= MOBILE ================= */
@media(max-width:768px) {
    .hero-container {
        text-align: center;
        justify-content: center
    }

    .hero-buttons {
        justify-content: center
    }

    .dark-toggle {
        bottom: 16px;
        right: 16px
    }
}

/* ================= SOCIAL LINKS ================= */
.social-section {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(37, 99, 235, .05));
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 18px 22px;
    border-radius: 18px;
    background: var(--card);
    border: 2px solid var(--border);

    text-decoration: none;
    font-weight: 600;
    color: var(--text);

    transition: all .35s ease;
}

.social-icon:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 20px 45px rgba(37, 99, 235, .35);
}

.icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Brand hover accents */
.social-icon:hover img {
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25))
}

/* Dark mode support */
body.dark .social-icon {
    background: #020617;
    border-color: #1e293b;
    color: #e5e7eb;
}

/* Mobile polish */
@media(max-width:768px) {
    .social-section {
        padding: 90px 0
    }

    .social-links {
        gap: 20px
    }
}

/* ================= TYPING EFFECT FIX ================= */
#typed {
    position: relative;
}

#typed::after {
    content: "|";
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1
    }

    25%,
    75% {
        opacity: 0
    }
}