/* -----------------------------------
   RESET
----------------------------------- */

html {
    scroll-behavior: smooth;
}

/* Optional: Offset for fixed navbar */
section {
    scroll-margin-top: 80px; /* Adjust this value based on your navbar height */
}


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

/* -----------------------------------
   THEME VARIABLES
----------------------------------- */
:root {
    --bg: #ffffff;
    --text: #111;
    --text-secondary: #555;
    --card: #f2f2f2;

    --accent: #ff6bb5;
    --accent-secondary: #6a5cff;
    --text-primary: #ffffff;
}

body.dark {
    --bg: #0f0f0f;
    --text: #f1f1f1;
    --text-secondary: #a0a0a0;
    --card: #1c1c1c;
}

/* -----------------------------------
   BODY STYLE
----------------------------------- */
body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.4s, color 0.4s;
    padding: 0;
}

/* -----------------------------------
   NAVBAR
----------------------------------- */
.navbar {
    position: fixed;
    top: 40px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--card);
    padding: 12px 25px;
    border-radius: 35px;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.15);
    z-index: 100;
}
body.dark .navbar {
    border: 1.5px solid rgba(255, 107, 181, 0.45);
    backdrop-filter: blur(8px);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: 0.3s;
}

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

#themeToggle {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

#themeToggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* -----------------------------------
   LOGO FIXED
----------------------------------- */
.logo-fixed {
    position: fixed;
    top: 26px;
    left: 114px;
    z-index: 1000;
}
.logo-fixed img {
    height: 100px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

/* -----------------------------------
   SECTIONS
----------------------------------- */
.section {
    min-height: 100vh;
    padding: 100px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -----------------------------------
   INTRO / HERO
----------------------------------- */
.intro-section {
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.intro-content {
    max-width: 1200px;
    z-index: 2;
    position: relative;
    left: -18em;
    top: 3em;
}
.intro-content h1 {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #f26325);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}
.intro-content h2 {
    font-size: 32px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s backwards;
}
.intro-content p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* -----------------------------------
   ANIMATIONS
----------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Floating Circles BG */
.bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.12;
    pointer-events: none;
}
.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    animation: float 20s infinite ease-in-out;
}
.circle-1 { width: 300px; height: 300px; top: 10%; left: 10%;}
.circle-2 { width: 200px; height: 200px; top: 60%; right: 10%; animation-delay: 2s;}
.circle-3 { width: 150px; height: 150px; bottom: 10%; left: 50%; animation-delay: 4s;}

@keyframes float {
    0%, 100% {transform: translate(0, 0) scale(1);}
    33% {transform: translate(30px, -30px) scale(1.1);}
    66% {transform: translate(-20px, 20px) scale(0.9);}
}

/* -----------------------------------
   CURSOR TRAIL
----------------------------------- */
.cursor-trail {
    position: fixed;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 999;
    transition: 0.05s linear;
}
body:not(.dark) .cursor-trail {
    background: radial-gradient(circle, rgba(140, 85, 255, 0.35), transparent 70%);
    filter: blur(15px);
}
body.dark .cursor-trail {
    background: radial-gradient(circle, rgba(255, 100, 255, 0.5), transparent 70%);
    filter: blur(20px);
}
/* Ink Canvas */
#inkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* -----------------------------------
   SKILLS SECTION
----------------------------------- */
.skills-section {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 30px;
}
.skills-section h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #FF4D00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 0.8s ease;
}

.skill-category {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease backwards;
}
.skill-category:nth-child(2) { animation-delay: 0.1s; }
.skill-category:nth-child(3) { animation-delay: 0.2s; }
.skill-category:nth-child(4) { animation-delay: 0.3s; }
.skill-category:nth-child(5) { animation-delay: 0.4s; }

.skill-category h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.skill-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: white;
    border: 1px solid rgb(247, 185, 242);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 61, 255, 0.1), transparent);
    transition: left 0.5s ease;
}
.skill-card:hover::before {
    left: 100%;
}
.skill-card:hover {
    transform: translateY(-4px);
    border-color: #8B3DFF;
    box-shadow: 0 8px 25px rgba(139, 61, 255, 0.2);
}
.skill-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Dark mode styles for skill cards */
body.dark .skill-card {
    background: var(--card);
    border-color: var(--card);
}
body.dark .skill-card:hover {
    border-color: #FF1B8D;
    box-shadow: 0 8px 25px rgba(255, 27, 141, 0.3);
}

/* -----------------------------------
   RESPONSIVE MEDIA QUERIES
----------------------------------- */

/* Extra large screens */
@media (max-width: 1600px) {
    .skills-section {
        margin-left: 3em;
    }
    .logo-fixed {
        left: 50px;
    }
}
@media (max-width: 1200px) {
    .intro-content {
        left: 0;
        top: 2em;
        max-width: 100%;
        padding: 0 24px;
    }
    .skills-section {
        margin-left: 0;
        padding: 0 24px;
    }
    .logo-fixed { left: 24px; }
    .section { padding: 100px 24px; }
}

@media (max-width: 1000px) {
    .navbar {
        top: 18px;
        right: 10px;
        padding: 10px 18px;
        border-radius: 28px;
        gap: 12px;
    }
    .logo-fixed img { height: 70px; }
    .intro-content h1 { font-size: 44px; }
    .intro-content h2 { font-size: 24px; }
    .skills-section h1 { font-size: 38px; }
}

/* Tablet and below */
@media (max-width: 800px) {
    .logo-fixed { left: 10px; top: 10px;}
    .logo-fixed img { height: 54px;}
    .navbar { 
        flex-direction: column;
        align-items: stretch;
        right: 0; 
        top: 0;
        padding: 15px 2vw 12px 2vw;
        border-radius: 0 0 30px 30px;
        width: 100vw;
        min-width: unset;
    }
    .nav-links { 
        flex-direction: row; 
        justify-content: center; 
        gap: 16px; 
        padding-bottom: 6px;
    }
    .skills-section {
        margin-left: 0;
        padding: 0 8px;
    }
    .intro-section, .section {
        padding: 70px 8px 30px 8px;
    }
    .intro-content {
        left: 0;
        top: 0;
        padding: 0;
        text-align: center;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .skills-grid {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .logo-fixed { display: none; }
    .skills-section h1 { font-size: 30px; margin-bottom: 32px;}
    .skill-category h2 { font-size: 16px; margin-bottom: 10px;}
    .skills-section { padding: 0 2vw;}
    .skill-card { padding: 10px 12px; font-size: 14px;}
    .intro-content h1 { font-size: 30px;}
    .intro-content h2 { font-size: 18px;}
    .intro-content p { font-size: 14px;}
    .section { padding: 60px 2vw 18px 2vw;}
    .navbar { padding: 7px 3vw;}
    .bg-circle { opacity: 0.23; }
}

/* For mobile, make everything stack and fit */
@media (max-width: 500px) {
    .intro-content h1 { font-size: 22px;}
    .bg-circle { display: none;}
    .intro-content { padding: 0 6px;}
    .skills-section h1 { font-size: 22px;}
}


/* Initial state: hidden and left for animation */
.skill-card {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.72s cubic-bezier(0.6, 0, 0.37, 1), 
                transform 0.72s cubic-bezier(0.6, 0, 0.37, 1);
}

/* When showing: visible and in-place */
.skill-card.show {
    opacity: 1;
    transform: translateX(0);
}



        body.dark {
            --bg: #0f0f0f;
            --text: #f1f1f1;
            --text-secondary: #a0a0a0;
            --card: #1c1c1c;
        }

       
        .projects-section {
            max-width: 1400px;
            margin: 0 auto;
            min-height: 100vh;
            display: flex;
            gap: 100px;
            align-items: center;
            padding-left: 40px;
            padding-top: 100px;
            
        }

        .projects-list {
            flex: 1;
        }

        .projects-list h1 {
            font-size: 64px;
            font-weight: 700;
            margin-bottom: 40px;
            background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #FF4D00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: fadeInDown 0.8s ease;
        }

        .project-item {
            margin-bottom: 20px;
            cursor: pointer;
        }

        .project-number {
            font-size: 72px;
            font-weight: 700;
            background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #FF4D00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
            display: inline-block;
        }

        .project-title {
            font-size: 42px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
            transition: color 0.3s ease;
        }

        .project-title::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 4px;
            background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #FF4D00);
            transition: width 0.4s ease;
        }

        .project-item:hover .project-title::after {
            width: 100%;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }

        .tag {
            font-size: 14px;
            color: var(--text-secondary);
            padding: 6px 14px;
            background: var(--card);
            border-radius: 20px;
            font-weight: 500;
        }

        .project-preview {
            flex: 1;
            position: sticky;
            top: 100px;
            height: 500px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 8em;;
        }

        .preview-container {
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        }

        .preview-image {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transform: scale(1.1);
            transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .preview-image.active {
            opacity: 1;
            transform: scale(1);
        }

  
      /* Theme Toggle */
        .theme-toggle {
            position: fixed;
            top: 30px;
            right: 30px;
            padding: 12px 24px;
            background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #FF4D00);
            color: white;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: 0.3s;
            z-index: 100;
        }

        .theme-toggle:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(139, 61, 255, 0.4);
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 1024px) {
            .projects-section {
                flex-direction: column;
                gap: 50px;
                padding-left: 20px;
            }

            .project-preview {
                position: relative;
                top: 0;
                height: 400px;
            }

            .project-title {
                font-size: 32px;
            }

            .project-number {
                font-size: 48px;
            }
        }
        


        .see-more-container {
    width: 100%;
    display: flex;
    
    margin-top: 36px;
    
}

.see-more-btn {
    padding: 16px 30px;
    
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: transparent;
    border: 2px solid rgb(246, 81, 153);
    color: var(--text);
    
    border-radius: 28px;
    box-shadow: 0 6px 24px rgba(139,61,255,0.10);
    text-decoration: none;
    transition: background 0.23s, transform 0.23s, box-shadow 0.23s;
    cursor: pointer;
    letter-spacing: 0.03em;
    display: inline-block;
}
.see-more-btn:hover {
    background: linear-gradient(90deg, #FF1B8D, #8B3DFF, #FF4D00);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(139,61,255,0.18);
}
.more-projects-section {
    padding: 60px 6%;
    margin-top: 5em;
    font-family: system-ui, sans-serif;
}

.more-projects-section h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 40px;
   background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #FF4D00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: fadeInDown 0.8s ease;
    text-align: center;
}

.projects-grid {
    display: grid;
    gap: 30px;
}

/* CARD */
.project-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    border: 1px solid #ececec;
}

/* IMAGE */

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* CONTENT */
.project-info {
    padding: 22px 26px;
}

.project-info h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 22px;
}
























/* TECH ICONS */
.tech-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tech-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid #d4c9ff;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
}

.tech-circle i {
    font-size: 26px;
}

/* Custom Colors */
.fa-react { color: #61dafb; }
.fa-node-js { color: #3c873a; }
.fa-js { color: #f7df1e; }
.fa-leaf { color: #4caf50; }
.fa-git-alt { color: #f1502f; }
.fa-database { color: #4b7bec; }

/* LIVE BUTTON */
.live-btn {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: #6a5cff;
    text-decoration: none;
    margin-top: 10px;
    font-weight: 600;
    gap: 6px;
}

.live-btn i {
    font-size: 15px;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 32px;
    width: 100%;
}




/* GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
    gap: 28px;
    width: 100%;
}

/* CARD */
.project-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e586ff;
    transition: 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.10);
}

/* IMAGE HEIGHT FIXED */
.project-image img {
    width: 100%;
    height: 280px;       /* ↓ smaller height */
    object-fit: cover;   /* crops neatly */
    display: block;
}

/* CONTENT COMPACT */
.project-info {
    padding: 18px 22px;
}

/* TITLE SMALLER */
.project-info h2 {
    font-size: 1.25rem;   /* ↓ smaller */
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* PARA SMALLER */
.project-info p {
    font-size: 0.92rem;   /* ↓ smaller */
    line-height: 1.45;    
    color: #5d5d5d;
    margin-bottom: 18px;
}

/* SMALLER ICONS */
.tech-circle {
    width: 40px;          /* ↓ smaller */
    height: 40px;
    border-radius: 50%;
    border: 2px solid #dcd3ff;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.tech-circle i {
    font-size: 20px;      /* ↓ smaller */
}

/* LIVE BUTTON SMALLER */
.live-btn {
    font-size: 0.95rem;
    margin-top: 6px;
}

.live-btn i {
    font-size: 14px;
}
/* ==== PROJECTS GRID DEFAULT (Desktop) ==== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 40px;
}

/* ==== PROJECT CARD ==== */
.project-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  transition: 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
}

/* ==== Responsive: Tablets ==== */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==== Responsive: Mobile ==== */
@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    padding: 18px;
  }
}
.project-title a {
    text-decoration: none;
    color: inherit;
}







 



/* -----------------------------------
   EDUCATION SECTION
----------------------------------- */
.education-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 30px;
}

.education-section h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #FF4D00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 0.8s ease;
    text-align: center;
}

.education-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(490px, 1fr));
    gap: 70px;
}

.education-card {
    background: var(--card);
    border: 2px solid #f7b9f2;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.dark .education-card {
    border-color: rgba(255, 107, 181, 0.3);
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 61, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.education-card:hover::before {
    left: 100%;
}

.education-card:hover {
    transform: translateY(-8px);
    border-color: #8B3DFF;
    box-shadow: 0 12px 40px rgba(139, 61, 255, 0.25);
}

body.dark .education-card:hover {
    border-color: #FF1B8D;
    box-shadow: 0 12px 40px rgba(255, 27, 141, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.education-icon {
    font-size: 40px;
    filter: grayscale(0);
}

.education-years {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(139, 61, 255, 0.1), rgba(255, 27, 141, 0.1));
    padding: 8px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.dark .education-years {
    background: linear-gradient(135deg, rgba(139, 61, 255, 0.2), rgba(255, 27, 141, 0.2));
}

.education-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.institution {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.institution::before {
    content: '🏫';
    font-size: 18px;
}

.education-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1000px) {
    .education-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .education-section {
        padding: 60px 20px;
    }
    
    .education-section h1 {
        font-size: 40px;
        margin-bottom: 40px;
    }
    
    .education-card {
        padding: 25px;
    }
    
    .education-card h3 {
        font-size: 20px;
    }
    
    .education-icon {
        font-size: 32px;
    }
}

@media (max-width: 500px) {
    .education-section h1 {
        font-size: 30px;
    }
    
    .education-cards {
        grid-template-columns: 1fr;
    }
    
    .education-card {
        padding: 20px;
    }
    
    .education-card h3 {
        font-size: 18px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .institution, .education-desc {
        font-size: 14px;
    }
}








        .header {
            text-align: center;
            padding-top: 8em;;
            margin-bottom: 60px;
        }

        .header h1 {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--text);
        }

        .header h1 .highlight {
            background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #FF4D00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .journey-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 60px;
            margin-bottom: 60px;
            padding-left: 3.5em;
        }

        .section-title {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 30px;
            color: var(--text);
            letter-spacing: 1px;
        }

        .timeline {
            position: relative;
            padding-left: 40px;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 11px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(180deg, #8B3DFF 0%, #FF1B8D 50%, #FF4D00 100%);
        }

        .timeline-item {
            position: relative;
            margin-bottom: 40px;
            animation: fadeInUp 0.6s ease forwards;
            opacity: 0;
        }

        .timeline-item:nth-child(1) { animation-delay: 0.1s; }
        .timeline-item:nth-child(2) { animation-delay: 0.2s; }
        .timeline-item:nth-child(3) { animation-delay: 0.3s; }
        .timeline-item:nth-child(4) { animation-delay: 0.4s; }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .timeline-dot {
            position: absolute;
            left: -40px;
            top: 8px;
            width: 24px;
            height: 24px;
            background: linear-gradient(135deg, #8B3DFF, #FF1B8D);
            border-radius: 50%;
            border: 4px solid var(--bg);
            box-shadow: 0 0 20px rgba(139, 61, 255, 0.6);
            z-index: 1;
            transition: all 0.3s ease;
        }

        .timeline-item:hover .timeline-dot {
            transform: scale(1.3);
            box-shadow: 0 0 30px rgba(255, 27, 141, 0.8);
        }

        .card {
    background: var(--card);
    border: 1px solid rgba(139, 61, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;

    /* ✨ NEW CHANGES */
    max-width: 85%; /* Card ka width kam */
    margin: 0 auto; /* card ko center rakhega */
    padding-left: 20px;
    padding-right: 20px;
    
}

        body.dark .card {
            border: 2px solid #f7b9f2;
        }

        .card:hover {
            transform: translateY(-5px);
            border-color: rgba(255, 27, 141, 0.6);
            box-shadow: 0 10px 40px rgba(139, 61, 255, 0.3);
        }

        body.dark .card:hover {
            border-color: #FF1B8D;
            box-shadow: 0 12px 40px rgba(255, 27, 141, 0.3);
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .year-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(139, 61, 255, 0.15);
            color: #FF1B8D;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            border: 1px solid rgba(139, 61, 255, 0.4);
        }

        body.dark .year-badge {
            background: linear-gradient(135deg, rgba(139, 61, 255, 0.2), rgba(255, 27, 141, 0.2));
        }

        .year-icon {
            font-size: 0.75rem;
        }

        .card h3 {
            font-size: 1.35rem;
            color: var(--text);
            margin-bottom: 8px;
            font-weight: 600;
            line-height: 1.3;
        }

        .card .company,
        .card .institution {
            color: var(--text-secondary);
            font-size: 1rem;
            margin-bottom: 12px;
            font-weight: 500;
        }

        .card .location {
            color: #FF4D00;
            font-size: 0.9rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .card p,
        .card ul {
            color: var(--text-secondary);
            line-height: 1.7;
            font-size: 0.95rem;
        }

        .card ul {
            list-style: none;
            padding-left: 0;
            margin-top: 15px;
        }

        .card ul li {
            position: relative;
            padding-left: 20px;
            margin-bottom: 10px;
        }

        .card ul li::before {
            content: '▹';
            position: absolute;
            left: 0;
            color: #FF1B8D;
            font-size: 1.1rem;
        }

        
       
        @media (max-width: 1024px) {
            .journey-container {
                grid-template-columns: 1fr;
                gap: 50px;
            }
        }

        @media (max-width: 768px) {
            .header h1 {
                font-size: 4rem;
            }

            .section-title {
                font-size: 1.5rem;
            }

            .card h3 {
                font-size: 1.1rem;
            }

            .timeline {
                padding-left: 30px;
            }

            .timeline-dot {
                left: -28px;
                width: 20px;
                height: 20px;
            }

            #themeToggle {
                top: 20px;
                right: 20px;
                padding: 10px 18px;
            }
        }

        @media (max-width: 500px) {
            .container {
                padding: 0 10px;
                margin-top: -6em;
            }

            .header h1 {
                font-size: 3.5rem;
            }

            .section-title {
                font-size: 1.2rem;
            }
        }











































        /* Geometric Background */
        .geometric-bg {
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .geo-shape {
            position: absolute;
            opacity: 0.08;
            animation: float 25s infinite ease-in-out;
        }

        .geo-shape.circle {
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: linear-gradient(135deg, #8B3DFF, #FF1B8D);
            top: 10%;
            left: 5%;
        }

        .geo-shape.triangle {
            width: 0;
            height: 0;
            border-left: 150px solid transparent;
            border-right: 150px solid transparent;
            border-bottom: 260px solid #FF4D00;
            top: 60%;
            right: 10%;
            animation-delay: 3s;
        }

        .geo-shape.hexagon {
            width: 200px;
            height: 200px;
            background: linear-gradient(135deg, #6a5cff, #8B3DFF);
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
            bottom: 15%;
            left: 15%;
            animation-delay: 5s;
        }

        .geo-shape.square {
            width: 180px;
            height: 180px;
            background: linear-gradient(135deg, #FF1B8D, #FF4D00);
            transform: rotate(45deg);
            top: 30%;
            right: 8%;
            animation-delay: 7s;
        }

        body.dark .geo-shape {
            opacity: 0.12;
        }

        @keyframes float {
            0%, 100% {
                transform: translate(0, 0) rotate(0deg) scale(1);
            }
            25% {
                transform: translate(30px, -40px) rotate(90deg) scale(1.1);
            }
            50% {
                transform: translate(-20px, 30px) rotate(180deg) scale(0.9);
            }
            75% {
                transform: translate(40px, 20px) rotate(270deg) scale(1.05);
            }
        }

        /* Contact Section */
        .contact-section {
            max-width: 1400px;
            margin: 0 auto;
            padding: 80px 30px;
            position: relative;
            z-index: 1;
        }

        .contact-header {
            text-align: center;
            margin-bottom: 80px;
            position: relative;
        }

        .contact-header h1 {
            font-size: 72px;
            font-weight: 700;
            margin-bottom: 20px;
            background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #FF4D00);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: fadeInDown 0.8s ease;
            position: relative;
            display: inline-block;
        }

        .contact-header h1::before {
            content: '';
            position: absolute;
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, #8B3DFF, #FF1B8D);
            opacity: 0.1;
            border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
            top: -20px;
            left: -40px;
            z-index: -1;
            animation: morph 8s infinite;
        }

        @keyframes morph {
            0%, 100% {
                border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
            }
            25% {
                border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
            }
            50% {
                border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
            }
            75% {
                border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
            }
        }

        .contact-header p {
            font-size: 18px;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1.5fr;
            gap: 80px;
            align-items: start;
        }

        /* Contact Info - Bento Grid Style */
        .contact-info {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            animation: fadeInLeft 0.8s ease;
        }

        .info-card {
            background: var(--card);
            border: 2px solid transparent;
            border-radius: 24px;
            padding: 17px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .info-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(139, 61, 255, 0.1), rgba(255, 27, 141, 0.1));
            opacity: 0;
            transition: opacity 0.4s;
        }

        .info-card:hover::before {
            opacity: 1;
        }

        body.dark .info-card {
            border-color: rgba(255, 107, 181, 0.2);
        }

        .info-card:hover {
            transform: translateY(-10px) scale(1.02);
            border-color: #8B3DFF;
            box-shadow: 0 20px 60px rgba(139, 61, 255, 0.3);
        }

        body.dark .info-card:hover {
            border-color: #FF1B8D;
            box-shadow: 0 20px 60px rgba(255, 27, 141, 0.4);
        }

        .info-card.large {
            grid-column: span 2;
        }

        .info-icon-wrapper {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #8B3DFF, #FF1B8D);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }

        .info-icon-wrapper i {
            font-size: 28px;
            color: white;
        }

        .info-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .info-value {
            font-size: 18px;
            font-weight: 600;
            color: var(--text);
            word-break: break-word;
        }

        .info-value a {
            color: var(--text);
            text-decoration: none;
            transition: color 0.3s;
        }

        .info-value a:hover {
            color: #FF1B8D;
        }

        /* Social Links */
        .social-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 15px;
        }

        .social-link {
            aspect-ratio: 1;
            background: var(--card);
            border: 2px solid transparent;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: var(--text);
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        body.dark .social-link {
            border-color: rgba(255, 107, 181, 0.2);
        }

        .social-link::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #8B3DFF, #FF1B8D);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .social-link:hover::before {
            opacity: 1;
        }

        .social-link i {
            position: relative;
            z-index: 1;
        }

        .social-link:hover {
            transform: translateY(-5px) rotate(5deg);
            border-color: transparent;
            box-shadow: 0 10px 30px rgba(139, 61, 255, 0.3);
        }

        .social-link:hover i {
            color: white;
        }

        /* Contact Form - Modern Glassmorphic */
        .contact-form {
            background: var(--card);
            border: 2px solid transparent;
            border-radius: 32px;
            padding: 50px;
            position: relative;
            overflow: hidden;
            animation: fadeInRight 0.8s ease;
        }

        body.dark .contact-form {
            border-color: rgba(255, 107, 181, 0.2);
            backdrop-filter: blur(10px);
        }

        .contact-form::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(135deg, transparent, rgba(139, 61, 255, 0.05), transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%) translateY(-100%) rotate(45deg);
            }
            100% {
                transform: translateX(100%) translateY(100%) rotate(45deg);
            }
        }

        .form-header {
            margin-bottom: 40px;
            position: relative;
            z-index: 1;
        }

        .form-header h2 {
            font-size: 32px;
            font-weight: 700;
            background: linear-gradient(90deg, #8B3DFF, #FF1B8D);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
        }

        .form-header p {
            color: var(--text-secondary);
            font-size: 16px;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
            position: relative;
            z-index: 1;
        }

        .form-group {
            position: relative;
        }

        .form-group.full {
            grid-column: span 2;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .input-wrapper {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            font-size: 18px;
            pointer-events: none;
            transition: color 0.3s;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 18px 20px 18px 55px;
            background: var(--bg);
            border: 2px solid rgba(139, 61, 255, 0.2);
            border-radius: 16px;
            font-size: 16px;
            color: var(--text);
            font-family: inherit;
            transition: all 0.3s ease;
        }

        .form-group textarea {
            padding-left: 20px;
            min-height: 150px;
            resize: vertical;
        }

        body.dark .form-group input,
        body.dark .form-group textarea {
            border-color: rgba(255, 107, 181, 0.2);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #8B3DFF;
            box-shadow: 0 0 0 4px rgba(139, 61, 255, 0.1);
        }

        .form-group input:focus ~ .input-icon {
            color: #8B3DFF;
        }

        body.dark .form-group input:focus,
        body.dark .form-group textarea:focus {
            border-color: #FF1B8D;
            box-shadow: 0 0 0 4px rgba(255, 27, 141, 0.1);
        }

        .submit-btn {
            width: 100%;
            padding: 20px 40px;
            font-size: 18px;
            font-weight: 700;
            color: white;
            background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #FF4D00);
            border: none;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            margin-top: 10px;
        }

        .submit-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .submit-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 20px 50px rgba(139, 61, 255, 0.4);
        }

        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .submit-btn span {
            position: relative;
            z-index: 1;
        }

        /* Success/Error Messages */
        .message {
            padding: 18px 24px;
            border-radius: 16px;
            margin-bottom: 25px;
            font-weight: 600;
            display: none;
            align-items: center;
            gap: 12px;
        }

        .message i {
            font-size: 20px;
        }

        .message.success {
            background: rgba(34, 197, 94, 0.1);
            border: 2px solid #22c55e;
            color: #22c55e;
        }

        .message.error {
            background: rgba(239, 68, 68, 0.1);
            border: 2px solid #ef4444;
            color: #ef4444;
        }

        .message.show {
            display: flex;
            animation: slideDown 0.3s ease;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInLeft {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .contact-container {
                grid-template-columns: 1fr;
                gap: 50px;
            }

            .contact-info {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .contact-section {
                padding: 60px 20px;
            }

            .contact-header h1 {
                font-size: 40px;
            }

            .contact-form {
                padding: 30px;
            }

            .form-grid {
                grid-template-columns: 1fr;
            }

            .form-group.full {
                grid-column: span 1;
            }

            .contact-info {
                grid-template-columns: 1fr;
            }

            .info-card.large {
                grid-column: span 1;
            }

            #themeToggle {
                top: 20px;
                right: 20px;
                padding: 10px 18px;
            }

            .geo-shape {
                opacity: 0.05;
            }
        }

        @media (max-width: 500px) {
            .contact-header h1 {
                font-size: 32px;
            }

            .contact-form {
                padding: 25px;
            }

            .form-header h2 {
                font-size: 24px;
            }

            .social-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 10px;
            }
        }
        .contact-box {
  background: var(--card);
  padding: 35px;
  border-radius: 14px;
  border: 1px solid rgba(139, 61, 255, 0.3);
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.contact-title {
  font-size: 2rem;
  background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #FF4D00);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  margin-bottom: 15px;
  font-weight: 700;
}

.contact-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.7;
}

.email-btn {
  display: inline-block;
  background: linear-gradient(90deg, #8B3DFF, #FF1B8D);
  padding: 12px 28px;
  border-radius: 30px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.email-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 61, 255, 0.4);
}

.note {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.contact-list {
  list-style: none;
  margin-top: 25px;
  padding: 0;
  text-align: left;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

.contact-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.contact-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #FF1B8D;
  font-weight: bold;
}
.site-footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.site-footer span {
  background: linear-gradient(90deg, #8B3DFF, #FF1B8D, #FF4D00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
