/* ==========================================================================
   CSS DESIGN SYSTEM - PRIYA K P PORTFOLIO
   ========================================================================== */

/* Modern CSS Variables & Resets */
:root {
    --bg-dark: #07070a;
    --bg-surface: #0f0f15;
    --bg-surface-glass: rgba(15, 15, 21, 0.6);
    --card-bg-glass: rgba(255, 255, 255, 0.02);
    --card-border-glass: rgba(255, 255, 255, 0.06);
    --card-border-hover: rgba(99, 102, 241, 0.4);
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Brand Accents */
    --primary-color: #6366f1; /* Indigo */
    --secondary-color: #06b6d4; /* Cyan */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --text-gradient: linear-gradient(135deg, #ffffff 20%, #a5b4fc 60%, #06b6d4 100%);
    --bg-gradient: radial-gradient(circle at 50% 50%, #0e0e1a 0%, #07070a 100%);
    
    /* Shadows */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
    --shadow-glow-cyan: 0 0 20px rgba(6, 118, 212, 0.15);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 14.5px;
    height: 100%;
}

body {
    background-color: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    position: relative;
}

/* Background Glow Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.12;
    mix-blend-mode: screen;
    animation: drift 25s infinite alternate ease-in-out;
}

.bg-glow-1 {
    background: var(--primary-color);
    top: -10%;
    left: -10%;
}

.bg-glow-2 {
    background: var(--secondary-color);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.bg-glow-3 {
    background: #a855f7; /* Violet */
    top: 40%;
    left: 45%;
    width: 400px;
    height: 400px;
    opacity: 0.08;
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 50px) scale(1.1);
    }
    100% {
        transform: translate(-40px, -80px) scale(0.9);
    }
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Scroll reveal initial states */
.scroll-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #27273a;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f5a;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
    background: rgba(7, 7, 10, 0.85);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.4s ease;
}

.navbar.scrolled .nav-container {
    padding: 0.8rem 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ==========================================================================
   GLASSMORPHISM CARD STYLING
   ========================================================================== */
.glass-card {
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border-glass);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    transform: translateY(-5px);
}

/* ==========================================================================
   SECTION COMMON STYLING
   ========================================================================== */
section {
    padding: 7.5rem 2rem 5.5rem 2rem;
    position: relative;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.subsection-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 4.5rem 0 2.5rem 0;
    text-align: center;
    color: var(--text-primary);
}

/* ==========================================================================
   SECTION 1: HERO
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    opacity: 0;
    animation: heroFadeIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero-content {
    max-width: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-avatar-container {
    width: 170px;
    height: 170px;
    margin-bottom: 2rem;
    border-radius: 50%;
    padding: 4px;
    background: var(--accent-gradient);
    box-shadow: var(--shadow-glow), 0 10px 30px rgba(99, 102, 241, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero-avatar-container:hover {
    transform: scale(1.04);
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.25);
  }

  .hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
  }

  .hero-title {
    font-size: 5rem;
    font-weight: 850;
    letter-spacing: -0.04em;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  }

  .hero-role {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .hero-subtitle {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.5;
    letter-spacing: -0.01em;
  }

  .hero-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border-glass);
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
  }

  .social-icon:hover {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
  }

  @keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
  }

/* ==========================================================================
   SECTION 2: ABOUT ME
   ========================================================================== */
.about-two-col {
    display: grid;
    grid-template-columns: 0.55fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- Left Column: Photo --- */
.about-photo-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-photo-frame {
    position: relative;
    width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.3),
        0 0 32px rgba(99, 102, 241, 0.22),
        0 0 70px rgba(6, 182, 212, 0.1),
        var(--shadow-lg);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.about-photo-frame:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.55),
        0 0 45px rgba(99, 102, 241, 0.32),
        0 0 90px rgba(6, 182, 212, 0.15),
        var(--shadow-lg);
}

.about-photo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 42%;
    filter: brightness(0.97) contrast(1.02);
}

/* --- Right Column: Content --- */
.about-content-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.about-heading {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.about-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.about-text-paragraph {
    font-size: 1.08rem;
    line-height: 1.95;
    color: var(--text-secondary);
    text-align: justify;
    margin-top: 0;
    margin-bottom: 1rem;
}

.about-text-paragraph:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   SECTION 3: CAREER - INTERACTIVE TIMELINE
   ========================================================================== */
.int-timeline {
    position: relative;
    max-width: 780px;
    margin: 0 auto 5rem auto;
}

.int-timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-color) 10%, var(--secondary-color) 85%, transparent);
}

.int-timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
}

.int-timeline-dot {
    position: absolute;
    left: 12px;
    top: 2.2rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}

.int-timeline-item:nth-child(3) .int-timeline-dot {
    border-color: var(--secondary-color);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.int-timeline-item:nth-child(4) .int-timeline-dot {
    border-color: #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.int-timeline-item:hover .int-timeline-dot {
    transform: scale(1.3);
    background: var(--text-primary);
}

/* Card */
.int-card {
    padding: 2rem;
}

/* Card Header: logo + meta */
.int-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.int-logo-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
}

.int-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.int-card-meta {
    flex: 1;
    min-width: 0;
}

.int-company {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.int-brand {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.int-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Duration Badges */
.int-badge {
    display: inline-block;
    padding: 0.22rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.int-badge-teal {
    background: rgba(6, 182, 212, 0.12);
    color: var(--secondary-color);
    border-color: rgba(6, 182, 212, 0.25);
}

.int-badge-violet {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.25);
}

.int-badge-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.25);
}

/* Summary */
.int-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

/* View Details Button */
.int-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
    text-decoration: none;
}

.int-view-btn:hover {
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(99, 102, 241, 0.4);
}

.int-view-btn i {
    transition: transform 0.3s ease;
}

.int-view-btn:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   DEDICATED INTERNSHIP PAGE STYLES
   ========================================================================== */
.internship-detail-section {
    padding-top: 120px;
    padding-bottom: 5rem;
    min-height: 80vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.detail-card {
    padding: 3rem;
    border-top: 4px solid var(--primary-color);
}

.detail-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-meta-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-meta-value {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 500;
}

.detail-subtitle {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.detail-subtitle:first-child {
    margin-top: 0;
}

.detail-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.detail-list li {
    font-size: 1rem;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.detail-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.detail-tags span {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.detail-tags span:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.detail-footer {
    margin-top: 2.5rem;
    text-align: center;
}



/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.skill-card {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card:hover {
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3), 0 0 15px rgba(99, 102, 241, 0.2);
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
}

.skill-card-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    transition: transform 0.4s ease;
}

.skill-card:hover .skill-card-icon {
    transform: scale(1.1);
    background: rgba(99, 102, 241, 0.15);
}

.skill-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
}

.skill-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skill-list-icon {
    color: var(--primary-color);
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
    opacity: 0.8;
}

.skill-meta {
    font-size: 0.75rem;
    opacity: 0.7;
    font-style: italic;
}

/* ==========================================================================
   SECTION 4: PROJECTS
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 2.5rem;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
}

.project-image-container {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--card-border-glass);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(15, 15, 21, 0.8) 100%);
}

.project-card:hover .project-image {
    transform: scale(1.06);
}

.project-info {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.project-card:hover .project-tags span {
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--text-primary);
}

/* ==========================================================================
   SECTION 5: EXPLORE MORE
   ========================================================================== */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.explore-card {
    padding: 2.5rem;
}

.explore-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.explore-card-header i {
    font-size: 1.6rem;
    color: var(--primary-color);
}

.explore-card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.explore-placeholder {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.placeholder-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.placeholder-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.placeholder-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    width: 150px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
    animation: loadingShimmer 2.5s infinite;
}

.width-80 { width: 80%; }
.width-75 { width: 75%; }
.width-70 { width: 70%; }
.width-60 { width: 60%; }
.width-50 { width: 50%; }
.width-40 { width: 40%; }
.width-30 { width: 30%; }

@keyframes loadingShimmer {
    0% { left: -150px; }
    100% { left: 100%; }
}

.placeholder-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Certifications List inside Explore Card */
.cert-list {
    display: flex;
    flex-direction: column;
}

.cert-item {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.75rem; /* Drastically reduced vertical spacing */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 -0.75rem;
}

.cert-item:last-child {
    border-bottom: none;
}

.cert-item:hover {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15); /* Soft blue glow */
    transform: translateY(-2px);
}

.cert-info {
    flex: 1;
    min-width: 0; /* Crucial: allows text to wrap without pushing the icon */
    padding-right: 1rem;
}

.cert-name {
    font-size: 0.95rem; /* slightly smaller to fit better */
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.cert-action {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    flex-shrink: 0; /* Prevent the icon from shrinking or wrapping */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-action:hover {
    color: var(--primary-color);
    transform: scale(1.15);
}

/* ==========================================================================
   SECTION 6: GET IN TOUCH
   ========================================================================== */
.contact-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-top: -2.5rem;
    margin-bottom: 3.5rem;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.02);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.submit-btn {
    align-self: flex-start;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    background: rgba(7, 7, 10, 0.4);
    text-align: center;
}

.footer-container p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-content-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

@media (max-width: 768px) {
    .footer-content-flex {
        flex-direction: column;
        text-align: center;
    }
    .footer-content-flex .footer-left {
        text-align: center !important;
    }
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.toast-content {
    background: rgba(15, 15, 21, 0.85);
    border: 1px solid var(--secondary-color);
    box-shadow: var(--shadow-glow-cyan), var(--shadow-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-content i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.toast-message h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.toast-message p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVENESS (MEDIA QUERIES)
   ========================================================================== */

/* Large Tablets & Desktop Refinements */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .about-two-col {
        gap: 2.5rem;
    }

    .about-photo-frame {
        width: 290px;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Small Tablets & Mobile */
@media (max-width: 768px) {
    section {
        padding: 5.5rem 1.5rem 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    
    /* Navigation */
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 15, 21, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 2rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-avatar-container {
        width: 140px;
        height: 140px;
        margin-bottom: 1.5rem;
    }
    
    /* About Me */
    .about-two-col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .about-photo-col {
        order: -1;
    }

    .about-photo-frame {
        width: 260px;
    }

    .about-heading {
        text-align: left;
    }

    .about-text-paragraph {
        font-size: 1rem;
        text-align: justify;
    }
    
    /* Timeline */
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 4rem;
        padding-right: 0 !important;
        left: 0 !important;
    }
    
    .timeline-dot {
        left: 2rem !important;
        transform: translateX(-50%);
    }
    
    .timeline-card {
        padding: 1.5rem;
    }
    
    /* Skills */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image-container {
        height: 200px;
    }
    
    .project-info {
        padding: 1.5rem;
    }
    
    /* Explore More */
    .explore-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .explore-card {
        padding: 1.75rem;
    }
    
    /* Contact Form */
    .contact-form-container {
        padding: 2rem;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Extra Small Screen Optimization */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-avatar-container {
        width: 120px;
        height: 120px;
        margin-bottom: 1.25rem;
    }
    
    .about-photo-frame {
        width: 220px;
    }

    .about-heading {
        font-size: 2rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   Certificate Modal Styles
   ========================================================================== */
.cert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cert-modal-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.cert-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cert-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.cert-modal-close:hover {
    color: var(--primary-color);
}

.cert-modal-iframe {
    width: 100%;
    flex: 1;
    border: none;
    border-radius: 8px;
    background: #fff; /* White background for PDFs */
}

/* Coming Soon Project Styles */
.coming-soon-card {
    position: relative;
    overflow: hidden; /* For the diagonal badge */
}

.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    z-index: 10;
    pointer-events: none;
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.projects-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.view-all-btn {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}
