/* ==========================================================================
   STYLE.CSS - Portfolio by Veeny
   Modular Architecture with CSS Custom Properties
   ========================================================================== */

/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1.  IMPORTS
   2.  Z-INDEX HIERARCHY MAP
   3.  GLOBAL RESETS & BASE STYLES
   4.  GLOBAL TYPOGRAPHY
   5.  LAYOUT - CONTAINER
   6.  BACKGROUND ELEMENTS
   7.  SCROLL PROGRESS BAR
   8.  LAUNCH SCREEN
   9.  CUSTOM CURSOR
   10. SECTIONS - BASE STYLES
   11. HERO SECTION
   12. ABOUT SECTION
   13. SKILLS / TOOLS SECTION
   14. PROJECTS SECTION
   15. BADGES / CERTIFICATIONS SECTION
   16. EXPERIENCE SECTION
   17. EDUCATION TIMELINE
   18. CONTACT SECTION
   19. BLOG SECTION
   20. FEEDBACK / TESTIMONIALS SECTION
   21. MODALS
   22. SCROLL TO TOP BUTTON
   23. UTILITY STYLES
   24. SCROLLBAR STYLING
   25. ACCESSIBILITY
   26. RESPONSIVE - TABLETS
   27. RESPONSIVE - MOBILE
   28. RESPONSIVE - SMALL MOBILE
   29. iOS SPECIFIC FIXES
   30. DESKTOP CURSOR EFFECTS
   31. PRINT STYLES
   ========================================================================== */

/* ==========================================================================
   IMPORTS
   ========================================================================== */

@import url('abstracts/_variables.css');
@import url('layout/_header.css');
@import url('layout/_footer.css');
@import url('components/_buttons.css');
@import url('components/_cards.css');

/* ==========================================================================
   Z-INDEX HIERARCHY MAP
   --------------------------------------------------------------------------
   -1      : Background Elements
   1 - 10  : Standard Content & Decorations
   100     : Header & Navigation (CRITICAL - sticky element)
   200     : Floating Actions (Scroll Top Button)
   300     : Custom Cursor
   400     : Modals & Overlays
   500     : Launch Screen (Topmost Layer)
   9999    : Scroll Progress Bar
   ========================================================================== */

/* ==========================================================================
   GLOBAL RESETS & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    transition: background 0.5s ease, color 0.5s ease;
}

body {
    background-color: var(--secondary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    position: relative;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Light Mode - Body Background */
[data-theme="light"] body {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 50%, #F1F5F9 100%);
}

/* Prevent horizontal scrolling on all devices */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix for images causing overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for text content not wrapping */
p, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY
   ========================================================================== */

/* Selection Styling */
::selection {
    background: rgba(138, 43, 226, 0.3);
    color: white;
}

[data-theme="light"] ::selection {
    background: rgba(107, 27, 154, 0.2);
    color: #1a1a2e;
}

/* ==========================================================================
   LAYOUT - CONTAINER
   ========================================================================== */

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

/* ==========================================================================
   BACKGROUND ELEMENTS
   ========================================================================== */

.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none; /* Prevents interaction/scroll interference */
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 30%, rgba(0, 180, 216, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(157, 78, 221, 0.1) 0%, transparent 40%);
}

/* Light Mode - Background Gradients */
[data-theme="light"] .bg-gradient,
[data-theme="light"] .background-elements {
    opacity: 0.3;
}

[data-theme="light"] .bg-gradient {
    background: 
        radial-gradient(circle at 15% 25%, rgba(0,145,173,0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(0,145,173,0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(156, 39, 176, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(0,145,173,0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 75%, rgba(123, 31, 162, 0.025) 0%, transparent 45%);
}

/* Light Mode - Extra Decorative Layer */
[data-theme="light"] .bg-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(123, 31, 162, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(0, 145, 173, 0.03) 50%, transparent 70%);
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(138, 43, 226, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 43, 226, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

/* Light Mode - Grid */
[data-theme="light"] .bg-grid {
    background-image: 
        linear-gradient(rgba(0, 145, 173, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 145, 173, 0.06) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 145, 173, 0.03) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 40px 40px;
    opacity: 0.5;
}

.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
    animation: bgShapeFloat 20s infinite linear;
}

/* Light Mode - Shapes */
[data-theme="light"] .bg-shape {
    opacity: 0.15;
    filter: blur(50px);
}

.bg-shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 60%;
    right: 10%;
    animation-delay: -10s;
}

.bg-shape-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-light);
    bottom: 10%;
    left: 20%;
    animation-delay: -5s;
}

@keyframes bgShapeFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(138, 43, 226, 0.1);
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.1s linear;
}

/* Light Mode - Scroll Progress */
[data-theme="light"] .scroll-progress {
    background: rgba(107, 27, 154, 0.06);
}

[data-theme="light"] .scroll-progress-bar {
    background: linear-gradient(90deg, #6B1B9A, #0077B6);
    box-shadow: 0 0 8px rgba(107, 27, 154, 0.3);
}

/* ==========================================================================
   LAUNCH SCREEN
   ========================================================================== */

.launch-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1a2e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 500;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
}

.launch-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Light Mode - Launch Screen */
[data-theme="light"] .launch-screen {
    background: linear-gradient(135deg, #F5F5FF 0%, #E8D5F2 50%, #D4E8F7 100%);
}

.launch-container {
    position: relative;
    text-align: center;
    z-index: 2;
}

.floral-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.1;
}

/* Light Mode - Floral Decoration */
[data-theme="light"] .floral-decoration {
    opacity: 0.25;
}

.floral-item {
    position: absolute;
    font-size: 3rem;
    opacity: 0;
    animation: floralFloat 8s infinite linear;
}

.floral-1 { top: 10%; left: 10%; animation-delay: 0s; }
.floral-2 { top: 20%; right: 15%; animation-delay: 1s; }
.floral-3 { bottom: 25%; left: 15%; animation-delay: 2s; }
.floral-4 { bottom: 15%; right: 10%; animation-delay: 3s; }
.floral-5 { top: 40%; left: 5%; animation-delay: 4s; }
.floral-6 { top: 60%; right: 5%; animation-delay: 5s; }

@keyframes floralFloat {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) rotate(180deg) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translateY(0) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

.main-logo {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 12px rgba(0,145,173,0.14));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

/* Light Mode - Logo */
[data-theme="light"] .main-logo {
    background: linear-gradient(135deg, #6B1B9A 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 14px rgba(0,145,173,0.12));
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.3));
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(138, 43, 226, 0.6));
        transform: scale(1.05);
    }
}

.name-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

/* Light Mode - Name Title */
[data-theme="light"] .name-title {
    background: linear-gradient(135deg, #212121 0%, #7B1FA2 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* Light Mode - Subtitle */
[data-theme="light"] .subtitle {
    color: #555555;
}

.subtitle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(to right, var(--primary), var(--accent));
    animation: subtitleLine 2s ease-in-out forwards;
}

@keyframes subtitleLine {
    0% { width: 0; }
    100% { width: 100%; }
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    animation: dotPulse 1.5s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
}

/* Light Mode - Loading Dots */
[data-theme="light"] .dot {
    background: linear-gradient(135deg, #7B1FA2, #0091AD);
    box-shadow: 0 0 12px rgba(123, 31, 162, 0.5);
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: particleFloat 10s infinite linear;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 300;
    transition: transform 0.2s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(138, 43, 226, 0.5);
    pointer-events: none;
    z-index: 299;
    transition: transform 0.4s ease;
}

/* ==========================================================================
   SECTIONS - BASE STYLES
   ========================================================================== */

section {
    padding: 120px 0;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

/* Section Dividers */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
}

section:last-of-type::after {
    display: none;
}

[data-theme="light"] section::after {
    background: linear-gradient(90deg, transparent, rgba(107, 27, 154, 0.15), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: underlinePulse 2s ease-in-out infinite;
}

@keyframes underlinePulse {
    0%, 100% { 
        width: 80px; 
        opacity: 1;
    }
    50% { 
        width: 120px; 
        opacity: 0.8;
    }
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Light Mode - Section Titles */
[data-theme="light"] .section-title h2 {
    color: #1a1a2e;
}

[data-theme="light"] .section-title h2::after {
    background: linear-gradient(90deg, #6B1B9A, #0077B6);
}

[data-theme="light"] .section-title p {
    color: #6b7280;
}

/* Section CTA Button Container */
.section-cta {
    text-align: center;
    margin-top: 50px;
}

.section-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(0, 180, 216, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
}

.hero-content h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
}

/* SPECIFICITY FIX: Hero section buttons */
.hero .hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Light Mode - Hero Section */
[data-theme="light"] .hero-content h1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #6B1B9A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-content h1 .gradient-text {
    background: linear-gradient(135deg, #6B1B9A, #0077B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-content p {
    color: #4b5563;
}

[data-theme="light"] .hero-content .auto-type {
    color: #0077B6;
}

/* Hero Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite linear;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: var(--primary);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--accent);
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}

.shape-3 {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    top: 80%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 48px;
}

.about-text {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text);
}

/* Light Mode - About Section */
[data-theme="light"] .about-text p {
    color: #374151;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
}

.profile-container {
    position: relative;
    display: inline-block;
}

.profile-img {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--primary);
    box-shadow: 
        0 0 0 15px rgba(138, 43, 226, 0.1),
        0 0 60px rgba(138, 43, 226, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    animation: profileFloat 6s ease-in-out infinite, profileGlow 4s ease-in-out infinite;
}

@keyframes profileFloat {
    0% {
        transform: translateY(0px) rotate(-0.4deg);
    }
    50% {
        transform: translateY(-6px) rotate(0.4deg);
    }
    100% {
        transform: translateY(0px) rotate(-0.4deg);
    }
}

@keyframes profileGlow {
    0%, 100% {
        box-shadow: 
            0 0 0 12px rgba(138, 43, 226, 0.08),
            0 0 40px rgba(138, 43, 226, 0.15);
    }
    50% {
        box-shadow: 
            0 0 0 15px rgba(138, 43, 226, 0.1),
            0 0 50px rgba(138, 43, 226, 0.2);
    }
}

.profile-img:hover {
    transform: translateY(0) scale(1.05) rotate(0deg);
    box-shadow: 
        0 0 0 15px rgba(138, 43, 226, 0.2),
        0 0 80px rgba(138, 43, 226, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Light Mode - Profile Image */
[data-theme="light"] .profile-img {
    border-color: #6B1B9A;
    box-shadow: 
        0 0 0 12px rgba(107, 27, 154, 0.08),
        0 20px 60px rgba(107, 27, 154, 0.15);
}

.profile-container::before {
    content: '';
    position: absolute;
    width: 105%;
    height: 105%;
    border: 3px dashed var(--accent);
    border-radius: 50%;
    top: -2%;
    left: -2%;
    animation: rotate 35s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lazy-loading helper */
.profile-img.lazy {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
    animation-play-state: paused;
}

.profile-img.lazy-loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.9s ease, transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
    animation-play-state: running;
}

.profile-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.decoration-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-light);
    animation: dotOrbit 8s linear infinite;
    box-shadow: 0 0 10px var(--primary-light);
}

.dot-1 { top: 10%; left: 10%; animation-delay: 0s; }
.dot-2 { top: 20%; right: 15%; animation-delay: -1.3s; }
.dot-3 { bottom: 25%; left: 15%; animation-delay: -2.6s; }
.dot-4 { bottom: 15%; right: 10%; animation-delay: -4s; }
.dot-5 { top: 5%; left: 50%; animation-delay: -5.3s; }
.dot-6 { bottom: 5%; right: 50%; animation-delay: -6.6s; }

@keyframes dotOrbit {
    0% { 
        transform: rotate(0deg) translateX(200px) rotate(0deg);
        opacity: 0.3;
    }
    25% { opacity: 0.8; }
    50% { 
        transform: rotate(180deg) translateX(200px) rotate(-180deg);
        opacity: 0.3;
    }
    75% { opacity: 0.8; }
    100% { 
        transform: rotate(360deg) translateX(200px) rotate(-360deg);
        opacity: 0.3;
    }
}

.profile-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 10px;
    border-radius: 50%;
    box-shadow: 
        inset 0 0 30px rgba(138, 43, 226, 0.3),
        0 0 40px rgba(138, 43, 226, 0.2);
    z-index: 2;
    pointer-events: none;
}

/* ==========================================================================
   SKILLS / TOOLS SECTION
   ========================================================================== */

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Note: .skill-category and .skill-pill styles are in components/_cards.css */

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */

.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Base filter button */
.filter-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover, 
.filter-btn.active {
    background: var(--primary);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Projects View More Button */
.projects-view-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.2);
}

.view-more-btn i {
    font-size: 1.1rem;
}

/* Project Date */
.project-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.project-date i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Project Card Header - Date & Status Row */
.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.project-header .project-status {
    margin-bottom: 0;
}

/* Note: .project-card styles are in components/_cards.css */

/* Light Mode - Project Cards */
[data-theme="light"] .project-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(249,250,251,0.98));
    border-color: rgba(0,145,173,0.06);
    box-shadow: 0 8px 24px rgba(0,145,173,0.04);
}

[data-theme="light"] .project-card:hover {
    box-shadow: 0 16px 40px rgba(0,145,173,0.06);
    border-color: rgba(0,145,173,0.12);
}

/* Project Status */
.project-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-completed {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.25);
}

.status-completed::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.status-inprogress {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 152, 0, 0.1));
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.25);
}

.status-inprogress::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #FF9800;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

.status-concept {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.1));
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.25);
}

/* Role Badge - Enhanced */
.role-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.12), rgba(0, 180, 216, 0.08));
    color: var(--primary);
    border: 1px solid rgba(138, 43, 226, 0.15);
    line-height: 1.4;
}

.role-badge i {
    font-size: 0.95rem;
    opacity: 0.8;
}

[data-theme="light"] .role-badge {
    background: linear-gradient(135deg, rgba(107, 27, 154, 0.1), rgba(0, 145, 173, 0.06));
    color: #6B1B9A;
    border-color: rgba(107, 27, 154, 0.12);
}

/* Project Link Disabled State */
.project-link.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
    background: rgba(138, 43, 226, 0.04) !important;
    color: var(--text-muted) !important;
    border-radius: 10px;
    padding: 10px 18px;
    border: 1.5px dashed rgba(138, 43, 226, 0.25) !important;
    transition: all 0.35s ease;
}

.project-link.disabled::before {
    display: none !important;
}

/* Coming Soon badge for disabled prototype links */
.project-link.disabled::after {
    content: 'Soon';
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(107,27,154,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 20;
    letter-spacing: 0.5px;
}

/* Light Mode - Disabled Project Link */
[data-theme="light"] .project-link.disabled {
    background: rgba(107, 27, 154, 0.03) !important;
    border-color: rgba(107, 27, 154, 0.2) !important;
}

[data-theme="light"] .project-link.disabled::after {
    background: linear-gradient(135deg, #6B1B9A, var(--primary));
    box-shadow: 0 4px 12px rgba(107,27,154,0.15);
}

/* Remove hover effects for disabled */
.project-link.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    color: var(--text-muted) !important;
}

/* ==========================================================================
   BADGES / CERTIFICATIONS SECTION
   ========================================================================== */

.badge-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.badge-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* SPECIFICITY FIX: Badge filter buttons override base .filter-btn */
.badge-filters .filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.badge-filters .filter-btn i {
    font-size: 12px;
}

.badge-filters .filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
}

.badge-filters .filter-btn:hover::before,
.badge-filters .filter-btn.active::before {
    width: 200%;
    height: 200%;
}

.badge-filters .filter-btn:hover {
    background: rgba(138, 43, 226, 0.1);
}

.badge-filters .filter-btn.active {
    background: var(--primary);
    color: white;
}

.badge-filters .filter-btn:hover,
.badge-filters .filter-btn.active {
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.15);
}

/* Light Mode - Badge Filters */
[data-theme="light"] .badge-filters .filter-btn {
    background: #FFFFFF;
    border-color: rgba(107, 27, 154, 0.15);
    color: #4b5563;
}

[data-theme="light"] .badge-filters .filter-btn:hover,
[data-theme="light"] .badge-filters .filter-btn.active {
    background: #6B1B9A;
    border-color: #6B1B9A;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(107, 27, 154, 0.2);
}

/* Sort Toggle Button */
.badge-sort {
    display: flex;
    justify-content: center;
}

.sort-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.sort-toggle:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.4);
}

.sort-toggle .sort-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.sort-toggle .sort-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--primary);
    border-radius: 12px;
    color: white;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sort-toggle .sort-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 60%
    );
    animation: sortShine 3s ease-in-out infinite;
}

@keyframes sortShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.sort-toggle .sort-icon i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.sort-toggle.oldest .sort-icon i {
    transform: rotate(180deg);
}

.sort-toggle.oldest .sort-text::after {
    content: 'Oldest';
}

.sort-toggle:not(.oldest) .sort-text::after {
    content: '';
}

/* Light Mode - Sort Toggle */
[data-theme="light"] .sort-toggle {
    background: #FFFFFF;
    border-color: rgba(107, 27, 154, 0.1);
}

[data-theme="light"] .sort-toggle:hover {
    border-color: rgba(107, 27, 154, 0.2);
    box-shadow: 0 4px 15px rgba(107, 27, 154, 0.1);
}

[data-theme="light"] .sort-toggle .sort-icon {
    background: linear-gradient(135deg, #6B1B9A, #0077B6);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Note: .cert-card styles are in components/_cards.css */

/* Light Mode - Cert Cards */
[data-theme="light"] .cert-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(249,250,251,0.98));
    border-color: rgba(0,145,173,0.06);
    box-shadow: 0 8px 24px rgba(0,145,173,0.04);
}

[data-theme="light"] .cert-card:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(247,250,251,0.96));
    box-shadow: 0 14px 36px rgba(0,145,173,0.05);
}

/* ==========================================================================
   EXPERIENCE SECTION
   ========================================================================== */

#experience {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background-image: 
        linear-gradient(rgba(138, 43, 226, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 43, 226, 0.02) 1px, transparent 1px),
        radial-gradient(ellipse at 20% 50%, rgba(138, 43, 226, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 180, 216, 0.05) 0%, transparent 50%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
}

/* Light Mode - Experience Section Background */
[data-theme="light"] #experience {
    background-image: 
        linear-gradient(rgba(107, 27, 154, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 27, 154, 0.02) 1px, transparent 1px);
    background-color: #FAFBFC;
}

/* Container for the timeline */
.experience-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* The Central Gradient Line */
.timeline-line {
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--primary) 15%, 
        var(--accent) 85%, 
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(0,145,173,0.08);
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--accent),
        transparent
    );
    animation: timelinePulse 3s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes timelinePulse {
    0%, 100% { 
        clip-path: inset(0 0 90% 0);
        opacity: 0;
    }
    50% { 
        clip-path: inset(0 0 0 0);
        opacity: 0.6;
    }
}

/* Light Mode - Timeline Line */
[data-theme="light"] .timeline-line {
    background: linear-gradient(to bottom, 
        transparent 0%, 
        #6B1B9A 15%, 
        #0077B6 85%, 
        transparent 100%
    );
}

/* Individual Item Wrapper */
.experience-item {
    display: flex;
    margin-bottom: 80px;
    position: relative;
    opacity: 1;
}

/* The Marker Area (Dot) */
.timeline-marker {
    flex: 0 0 100px;
    position: relative;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    position: sticky;
    top: 200px;
    width: 16px;
    height: 16px;
    background: var(--secondary);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 4px var(--secondary);
}

.timeline-dot::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
    animation: dotPulseAnim 2s ease-in-out infinite;
}

@keyframes dotPulseAnim {
    0%, 100% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

/* Light Mode - Timeline Dot */
[data-theme="light"] .timeline-dot {
    background: #FFFFFF;
    border-color: #6B1B9A;
    box-shadow: 0 0 0 4px #FAFBFC;
}

/* Hover Effect: Connection Logic */
.experience-item:hover .timeline-dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--secondary), 0 0 20px var(--accent);
    transform: scale(1.3);
}

.experience-item:hover .timeline-dot::before {
    opacity: 1;
    animation: none;
    inset: -12px;
}

[data-theme="light"] .experience-item:hover .timeline-dot {
    background: #6B1B9A;
    border-color: #6B1B9A;
    box-shadow: 0 0 0 4px #FAFBFC, 0 0 15px rgba(107, 27, 154, 0.3);
}

/* Content Area */
.experience-content {
    flex: 1;
    padding-left: 20px;
}

.experience-date {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Light Mode - Experience Date */
[data-theme="light"] .experience-date {
    color: #0077B6;
    font-weight: 600;
}

/* Note: .experience-card styles are in components/_cards.css */

/* Accent bar on left side */
.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.experience-item:hover .experience-card::before {
    opacity: 1;
}

/* Enhanced accent bar on top */
.experience-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

.experience-item:hover .experience-card::after {
    width: 100%;
}

/* Ambient Glow behind card */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%, 
        rgba(0,145,173,0.06), 
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.experience-card:hover .card-glow {
    opacity: 1;
}

/* Card Header Layout */
.card-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    align-items: center;
}

/* Light Mode - Card Header */
[data-theme="light"] .card-header {
    border-bottom-color: rgba(107, 27, 154, 0.08);
}

.role-icon {
    width: 56px;
    height: 56px;
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.experience-card:hover .role-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.role-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 5px 0;
    letter-spacing: -0.5px;
}

.role-info h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Light Mode - Role Info */
[data-theme="light"] .role-info h3 {
    color: #1a1a2e;
    font-weight: 600;
}

[data-theme="light"] .role-info h4 {
    color: #4b5563;
}

.location-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light Mode - Location Badge */
[data-theme="light"] .location-badge {
    background: rgba(107, 27, 154, 0.06);
    border-color: rgba(107, 27, 154, 0.12);
    color: #6B1B9A;
    font-weight: 500;
}

/* Details List */
.experience-details {
    list-style: none;
    margin-bottom: 30px;
}

.experience-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: rgba(230, 230, 230, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    transition: transform 0.25s ease, color 0.25s ease;
}

/* Light Mode - Experience Details */
[data-theme="light"] .experience-details li {
    color: #374151;
}

/* The elegant custom dot */
.experience-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    opacity: 0.7;
}

/* Bullet hover / tap effect */
.experience-details li:hover,
.experience-details li:active,
.experience-details li:focus {
    color: var(--accent);
}

.experience-details li:hover::before,
.experience-details li:active::before,
.experience-details li:focus::before {
    transform: scale(1.3);
    background-color: var(--primary);
    opacity: 1;
}

/* Tech Stack Chips */
.tech-stack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-badge {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.tech-badge:hover::before {
    width: 150%;
    height: 150%;
}

.tech-badge:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.15);
}

/* Light Mode - Tech Badge */
[data-theme="light"] .tech-badge {
    color: #4b5563;
    background: rgba(107, 27, 154, 0.04);
    border: 1px solid rgba(107, 27, 154, 0.1);
}

[data-theme="light"] .tech-badge:hover {
    background: rgba(107, 27, 154, 0.08);
    border-color: rgba(107, 27, 154, 0.2);
    color: #6B1B9A;
}

.experience-card:hover .tech-badge {
    border-color: var(--primary);
    color: var(--text);
    background: rgba(138, 43, 226, 0.1);
}

.experience-card:hover .tech-badge:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

/* Strategic Value Matrix (Experience Sub-section) */
.value-matrix {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid rgba(138, 43, 226, 0.1);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Note: .matrix-card styles are in components/_cards.css */

/* Matrix Icon */
.matrix-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.4s ease;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.matrix-card:hover .matrix-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

/* Typography */
.matrix-card h4 {
    color: var(--text);
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.matrix-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.matrix-card:hover h4 {
    color: var(--accent);
}

.matrix-card:hover p {
    color: var(--text);
}

/* ==========================================================================
   EDUCATION TIMELINE
   ========================================================================== */

.education-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.education-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

/* Light Mode - Education Timeline Line */
[data-theme="light"] .education-timeline::after {
    background: linear-gradient(to bottom, #6B1B9A, #0077B6);
}

.education-timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
}

.education-timeline-item:nth-child(odd) {
    left: 0;
    transform: translateX(-50px);
}

.education-timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(50px);
}

.education-timeline-content {
    padding: 25px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0,145,173,0.06);
}

.education-timeline-content:hover {
    box-shadow: var(--shadow-hover);
}

.education-timeline-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.education-timeline-content p {
    color: var(--text);
}

/* Light Mode - Education Timeline Content */
[data-theme="light"] .education-timeline-content {
    background: #FFFFFF;
    border: 1px solid rgba(107, 27, 154, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .education-timeline-content:hover {
    border-color: rgba(107, 27, 154, 0.15);
    box-shadow: 0 12px 40px rgba(107, 27, 154, 0.1);
}

[data-theme="light"] .education-timeline-content h3 {
    color: #6B1B9A;
}

[data-theme="light"] .education-timeline-content p {
    color: #374151;
}

.education-timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    border: 4px solid rgba(0,145,173,0.12);
    border-radius: 50%;
    top: 30px;
    z-index: 1;
    transition: var(--transition);
}

.education-timeline-item:hover::after {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(0,145,173,0.06);
}

.education-timeline-item:nth-child(odd)::after {
    right: -10px;
}

.education-timeline-item:nth-child(even)::after {
    left: -10px;
}

/* Light Mode - Education Timeline Item Dot */
[data-theme="light"] .education-timeline-item::after {
    background: #0077B6;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 4px #FAFBFC;
}

[data-theme="light"] .education-timeline-item:hover::after {
    background: #6B1B9A;
    box-shadow: 0 0 0 4px #FAFBFC, 0 0 15px rgba(107, 27, 154, 0.3);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-container {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50px);
    text-decoration: none;
    color: var(--text);
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.contact-item:hover {
    background-color: var(--card-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.contact-item:hover .contact-icon {
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.contact-item i {
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1);
    color: var(--accent);
}

/* Light Mode - Contact Section */
[data-theme="light"] .contact-icon {
    background: rgba(107, 27, 154, 0.06);
    border: 2px solid rgba(107, 27, 154, 0.15);
    color: #6B1B9A;
}

[data-theme="light"] .contact-item {
    background: #FFFFFF;
    border: 1px solid rgba(107, 27, 154, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .contact-item:hover {
    border-color: rgba(107, 27, 154, 0.15);
    box-shadow: 0 12px 40px rgba(107, 27, 154, 0.1);
}

[data-theme="light"] .contact-item:hover .contact-icon {
    background: linear-gradient(135deg, #6B1B9A, #0077B6);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(107, 27, 154, 0.25);
}

[data-theme="light"] .contact-details h4 {
    color: #1a1a2e;
}

[data-theme="light"] .contact-details p {
    color: #4b5563;
}

[data-theme="light"] .contact-item i {
    color: #6B1B9A;
}

[data-theme="light"] .contact-item:hover i {
    color: #0077B6;
}

.contact-form {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
}

.contactusbtn {
    align-self: flex-start;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--card-hover);
    box-shadow: 
        0 0 0 3px rgba(138, 43, 226, 0.1),
        0 10px 30px rgba(138, 43, 226, 0.1);
    transform: translateY(-2px);
}

.form-control.error {
    border-color: #e53e3e;
}

/* Light Mode - Form Control */
[data-theme="light"] .form-control {
    background: #FFFFFF;
    border: 2px solid rgba(107, 27, 154, 0.1);
    color: #1a1a2e;
}

[data-theme="light"] .form-control:focus {
    border-color: #6B1B9A;
    box-shadow: 0 0 0 3px rgba(107, 27, 154, 0.08);
}

[data-theme="light"] .form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: var(--secondary);
    padding: 0 10px;
    color: var(--primary);
}

.error-message {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* SPECIFICITY FIX: Submit Button in Contact Form */
.contact-form .btn[type="submit"] {
    position: relative;
    overflow: hidden;
}

.contact-form .btn[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: none;
}

.contact-form .btn[type="submit"]:hover::before {
    animation: submitShine 0.6s ease;
}

@keyframes submitShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 400;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.contact-modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-hover);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.contact-modal.active .contact-modal-content {
    transform: scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-modal-close:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.contact-modal-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-modal-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text);
}

.contact-modal-message {
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 auto;
}

.contact-modal-actions .contact-modal-btn {
    text-align: center;
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */

/* Blog Grid Layout */
.blog-grid-preview, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* Note: .blog-card styles are in components/_cards.css */

/* Search Bar Styling (For Blog Page) */
.search-container {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-wrapper input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    font-size: 1.1rem;
    background: var(--card-bg);
    border: 2px solid rgba(138, 43, 226, 0.2);
    border-radius: 50px;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
    transition: var(--transition);
}

.search-wrapper input:focus + .search-icon,
.search-wrapper input:not(:placeholder-shown) + .search-icon {
    color: var(--primary);
}

/* ==========================================================================
   FEEDBACK / TESTIMONIALS SECTION
   ========================================================================== */

#feedback {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#feedback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(138, 43, 226, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(0, 180, 216, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Light Mode - Feedback Section Background */
[data-theme="light"] #feedback::before {
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(107, 27, 154, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(0, 119, 182, 0.04) 0%, transparent 50%);
}

.feedback-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    perspective: 1000px;
}

.feedback-carousel .feedback-grid {
    display: block;
}

/* Carousel container: height is driven by JS to match active card */
.feedback-carousel .feedback-container {
    position: relative;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* All cards are absolutely stacked — no position toggling */
.feedback-carousel .feedback-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    width: 100%;
    max-width: 760px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 0;
}

.feedback-carousel .feedback-card.is-active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    z-index: 1;
}

.feedback-carousel .feedback-card.is-leaving {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.feedback-carousel .feedback-card.animate-in {
    animation: none;
}

/* Note: .feedback-card styles are in components/_cards.css */

/* Animation for Feedback Cards on Scroll */
.feedback-card {
    opacity: 0;
    transform: translateY(30px);
}

.feedback-card.animate-in {
    animation: feedbackFadeIn 0.6s ease forwards;
}

.feedback-card:nth-child(1).animate-in { animation-delay: 0.1s; }
.feedback-card:nth-child(2).animate-in { animation-delay: 0.2s; }
.feedback-card:nth-child(3).animate-in { animation-delay: 0.3s; }

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

/* Feedback Navigation */
.feedback-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.feedback-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid rgba(138, 43, 226, 0.2);
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.25);
}

/* Light Mode - Feedback Navigation */
[data-theme="light"] .feedback-nav-btn {
    background: #FFFFFF;
    border-color: rgba(107, 27, 154, 0.15);
    color: #6B1B9A;
}

[data-theme="light"] .feedback-nav-btn:hover {
    background: #6B1B9A;
    color: white;
    border-color: #6B1B9A;
    box-shadow: 0 8px 25px rgba(107, 27, 154, 0.25);
}

.feedback-dots {
    display: flex;
    gap: 10px;
}

.feedback-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-dot.active {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.feedback-dot:hover:not(.active) {
    background: rgba(138, 43, 226, 0.4);
}

/* Light Mode - Feedback Dots */
[data-theme="light"] .feedback-dot {
    background: rgba(107, 27, 154, 0.15);
}

[data-theme="light"] .feedback-dot.active {
    background: #6B1B9A;
    box-shadow: 0 0 15px rgba(107, 27, 154, 0.35);
}

[data-theme="light"] .feedback-dot:hover:not(.active) {
    background: rgba(107, 27, 154, 0.3);
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 400;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-hover);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-logo {
    width: 100%;
    height: auto;
    max-width: 300px;
    display: block;
    margin: 0 auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 200;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-clip: padding-box;
    box-shadow: var(--shadow);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Pulse Animation for Scroll Top */
#scrollTop {
    animation: scrollPulse 2s ease-in-out infinite;
}

#scrollTop:hover {
    animation: none;
    transform: translateY(-3px);
}

@keyframes scrollPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2); }
    50% { box-shadow: 0 6px 20px rgba(138, 43, 226, 0.3); }
}

/* ==========================================================================
   UTILITY STYLES
   ========================================================================== */

/* Lazy Loading */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy-loaded {
    opacity: 1;
}

/* ==========================================================================
   SKELETON LOADERS - Prevent Layout Shift
   ========================================================================== */

/* Base skeleton */
.skeleton-box {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 8px;
}

.skeleton-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(138, 43, 226, 0.08) 50%,
        transparent 100%
    );
    animation: skeletonShimmer 1.5s infinite;
    transform: translateX(-100%);
}

@keyframes skeletonShimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Image skeleton - maintains aspect ratio */
.skeleton-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(
        135deg,
        var(--card-bg) 0%,
        var(--card-hover) 50%,
        var(--card-bg) 100%
    );
    background-size: 200% 200%;
    animation: skeletonPulse 2s ease-in-out infinite;
}

@keyframes skeletonPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Profile image skeleton (circular) */
.skeleton-avatar {
    border-radius: 50%;
    aspect-ratio: 1;
}

/* Text line skeleton */
.skeleton-text {
    height: 1em;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    width: 60%;
}

/* Light Mode - Skeleton */
[data-theme="light"] .skeleton-box::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(107, 27, 154, 0.06) 50%,
        transparent 100%
    );
}

[data-theme="light"] .skeleton-image {
    background: linear-gradient(
        135deg,
        #f1f5f9 0%,
        #e2e8f0 50%,
        #f1f5f9 100%
    );
}

/* Hide skeleton when image loads */
img.lazy-loaded + .skeleton-box,
img.lazy-loaded ~ .skeleton-overlay {
    display: none;
}

/* Legacy skeleton loading for images */
.skeleton {
    background: linear-gradient(90deg, #2D2D44 25%, #373754 50%, #2D2D44 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Lazy States */
.lazy {
    background: linear-gradient(
        90deg,
        var(--card-bg) 25%,
        var(--card-hover) 50%,
        var(--card-bg) 75%
    );
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

.lazy-loaded {
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Light Mode - Table Styles */
[data-theme="light"] table,
[data-theme="light"] th,
[data-theme="light"] td,
[data-theme="light"] .table {
    background: #FFFFFF;
    color: var(--text);
    border-color: rgba(0,145,173,0.06);
    border-collapse: collapse;
}

[data-theme="light"] table th {
    background: rgba(0,145,173,0.03);
    color: var(--text);
    border-bottom: 1px solid rgba(0,145,173,0.08);
    padding: 12px 16px;
    text-align: left;
}

[data-theme="light"] table td {
    border-bottom: 1px solid rgba(17,18,22,0.04);
    padding: 12px 16px;
}

[data-theme="light"] .table-striped tr:nth-child(odd) td {
    background: rgba(0,145,173,0.02);
}

/* Fix for GSAP markers */
.gsap-marker-start,
.gsap-marker-end,
.gsap-marker-scroller-start,
.gsap-marker-scroller-end {
    display: none !important;
}

/* ==========================================================================
   SCROLLBAR STYLING
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 5px;
    border: 2px solid var(--secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--accent));
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #F1F5F9;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6B1B9A, #0077B6);
    border-color: #F1F5F9;
}

/* ==========================================================================
   ACCESSIBILITY - Premium Focus States & Touch Targets
   ========================================================================== */

/* Skip-to-content link - visible only on keyboard focus */
.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 0 0 12px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Remove default outline */
*:focus {
    outline: none;
}

/* Custom focus ring - keyboard only (ring-offset style) */
*:focus-visible {
    outline: none;
    box-shadow: 
        0 0 0 2px var(--secondary),
        0 0 0 4px var(--primary),
        0 0 0 5px rgba(138, 43, 226, 0.2);
    border-radius: inherit;
    transition: box-shadow 0.15s ease;
}

/* Specific overrides for interactive elements */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    box-shadow: 
        0 0 0 2px var(--secondary),
        0 0 0 4px var(--primary),
        0 0 12px rgba(138, 43, 226, 0.25);
}

/* Outline buttons: reduce focus glow to avoid oversized look */
.btn.btn-outline:focus-visible {
    box-shadow:
        0 0 0 2px var(--secondary),
        0 0 0 3px var(--primary);
}

/* Filter buttons */
.filter-btn:focus-visible,
.social-link:focus-visible {
    box-shadow: 
        0 0 0 2px var(--secondary),
        0 0 0 4px var(--primary),
        0 0 10px rgba(138, 43, 226, 0.2);
}

/* Cards get subtle treatment */
.project-card:focus-visible,
.cert-card:focus-visible,
.blog-card:focus-visible,
.feedback-card:focus-visible {
    box-shadow: 
        var(--shadow-hover),
        0 0 0 2px var(--secondary),
        0 0 0 4px var(--primary);
}

/* Form inputs */
.form-control:focus-visible {
    box-shadow: 
        0 0 0 3px rgba(138, 43, 226, 0.15),
        0 4px 12px rgba(138, 43, 226, 0.1);
    border-color: var(--primary);
}

/* Light Mode Focus States */
[data-theme="light"] *:focus-visible {
    box-shadow: 
        0 0 0 2px #FFFFFF,
        0 0 0 4px #6B1B9A,
        0 0 0 5px rgba(107, 27, 154, 0.15);
}

[data-theme="light"] a:focus-visible,
[data-theme="light"] button:focus-visible,
[data-theme="light"] .btn:focus-visible {
    box-shadow: 
        0 0 0 2px #FFFFFF,
        0 0 0 4px #6B1B9A,
        0 0 10px rgba(107, 27, 154, 0.2);
}

[data-theme="light"] .project-card:focus-visible,
[data-theme="light"] .cert-card:focus-visible,
[data-theme="light"] .blog-card:focus-visible {
    box-shadow: 
        var(--shadow-hover),
        0 0 0 2px #FFFFFF,
        0 0 0 4px #6B1B9A;
}

/* ==========================================================================
   TOUCH TARGETS - 44px Minimum Hit Areas (WCAG)
   ========================================================================== */

/* Filter buttons - expand touch area */
.filter-btn {
    position: relative;
    min-height: 44px;
}

.filter-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px;
    min-height: 44px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
}

/* Feedback nav buttons */
.feedback-nav-btn {
    min-width: 48px;
    min-height: 48px;
}

/* Social links */
.social-link {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Modal close buttons */
.modal-close,
.contact-modal-close {
    min-width: 44px;
    min-height: 44px;
}

/* Theme toggle */
.theme-toggle,
.theme-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .profile-img,
    .decoration-dot {
        animation: none !important;
    }
}

/* ==========================================================================
   RESPONSIVE - TABLETS
   ========================================================================== */

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .education-timeline::after {
        left: 31px;
    }
    
    .education-timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .education-timeline-item:nth-child(even) {
        left: 0;
    }
    
    .education-timeline-item::after {
        left: 21px;
    }
    
    .contact-container {
        flex-direction: column;
    }

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

    .name-title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .profile-img {
        width: 320px;
        height: 320px;
    }

    /* Feedback Grid */
    .feedback-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .feedback-card:nth-child(3) {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Tablet Animation Performance (max-width: 1024px) */
@media (max-width: 1024px) {
    .bg-shapes, .bg-gradient::after, .bg-grid { animation: none !important; }
    .shape-1, .shape-2, .shape-3, .bg-shape-1, .bg-shape-2, .bg-shape-3 { animation: none !important; transform: none !important; }
    .floral-item, .particle { animation: none !important; }
    .launch-screen { will-change: auto; }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
        overflow: hidden;
    }

    section {
        overflow: hidden !important;
        position: relative;
    }

    /* Hero Section */
    .hero {
        padding: 140px 0 80px;
        text-align: center;
        min-height: 100vh;
        min-height: 100dvh; /* dynamic viewport height for mobile browsers */
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .hero-content {
        position: relative;
        z-index: 2;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 20px;
        transform: none !important;
        opacity: 1 !important;
    }

    .hero-content p {
        font-size: 1.1rem;
        text-align: center;
        padding: 0 10px;
        transform: none !important;
        opacity: 1 !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        transform: none !important;
        opacity: 1 !important;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .btn.btn-outline {
        padding: 10px 20px;
        max-width: 260px;
    }

    .floating-shapes {
        z-index: 1;
    }

    .shape {
        animation-duration: 8s !important;
    }

    /* About Section */
    .about-content {
        flex-direction: column-reverse;
        gap: 40px;
        text-align: center;
    }

    .about-text {
        padding: 0 10px;
        transition: none !important;
    }

    .about-text h3 {
        font-size: 1.6rem;
    }

    .about-image {
        transition: none !important;
    }

    .profile-img {
        width: 280px;
        height: 280px;
        animation: profileFloat 8s ease-in-out infinite;
    }

    .decoration-dot {
        animation: none;
        opacity: 0.3;
    }

    /* Skills */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Projects */
    .project-filters {
        gap: 10px;
        padding: 0 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Certifications */
    .badge-controls {
        gap: 15px;
    }

    .badge-filters {
        gap: 8px;
    }

    .badge-filters .filter-btn {
        padding: 8px 14px;
        font-size: 11px;
        gap: 5px;
    }

    .badge-filters .filter-btn i {
        font-size: 10px;
    }

    .sort-toggle {
        padding: 6px 14px;
        gap: 8px;
    }

    .sort-toggle .sort-label {
        font-size: 11px;
    }

    .sort-toggle .sort-icon {
        padding: 3px 8px;
        font-size: 10px;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Experience Section */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-line::before {
        animation: none;
    }
    
    .timeline-marker {
        flex: 0 0 40px;
        justify-content: center;
    }
    
    .timeline-dot {
        width: 12px;
        height: 12px;
        top: 40px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .role-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .role-info h3 {
        font-size: 1.3rem;
    }

    .experience-details li {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
        padding-left: 24px;
    }

    /* Education Timeline */
    .education-timeline::after {
        left: 20px;
    }

    .education-timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .education-timeline-item:nth-child(even) {
        left: 0;
    }

    .education-timeline-item::after {
        left: 11px;
    }

    /* Value Matrix */
    .matrix-grid {
        grid-template-columns: 1fr;
    }
    
    .value-matrix {
        margin-top: 60px;
        line-height: 1.2;
    }

    /* Contact */
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-item {
        padding: 15px;
        margin-bottom: 20px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
        font-size: 1.3rem;
    }

    .contact-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .contact-modal-actions {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        margin: 0 auto;
    }

    .contactusbtn {
        align-self: center;
        width: 100%;
        max-width: 280px;
        justify-content: center;
        margin: 0 auto;
    }

    /* Blog */
    .blog-grid-preview, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .search-wrapper input {
        padding: 15px 20px 15px 50px;
        font-size: 1rem;
    }
    
    .search-icon {
        left: 20px;
    }

    /* Feedback */
    #feedback {
        padding: 80px 0;
    }
    
    .feedback-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feedback-card:nth-child(3) {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .feedback-nav {
        margin-top: 35px;
        gap: 15px;
    }
    
    .feedback-nav-btn {
        width: 45px;
        height: 45px;
    }

    .feedback-carousel .feedback-card {
        max-width: 100%;
    }

    /* Section Titles */
    .section-title {
        margin-bottom: 50px;
        padding: 0 10px;
        transition: none !important;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Modals */
    .modal-content {
        max-width: 90%;
        padding: 15px;
    }

    /* Scroll Top */
    .scroll-top {
        bottom: 80px;
        right: 20px;
        width: 46px;
        height: 46px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

    /* Hide cursor on mobile */
    .cursor, .cursor-follower { 
        display: none !important; 
    }

    .loading-dots .dot { 
        animation: none !important; 
    }

}

/* ==========================================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .name-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .main-logo {
        font-size: 4rem;
    }

    .profile-img {
        width: 250px;
        height: 250px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .scroll-top {
        bottom: 90px !important;
        right: 16px !important;
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
    }

    /* Feedback */
    #feedback {
        padding: 60px 0;
    }
    
    .feedback-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .feedback-dot {
        width: 10px;
        height: 10px;
    }

    /* Experience Details - hide custom dot */
    .experience-details li::before { 
        display: none !important; 
    }
    .experience-details li { 
        padding-left: 8px !important; 
    }

    .bg-shape {
        animation: none !important;
    }
    
    .floral-item {
        animation: none !important;
    }

    /* Reduce background elements */
    .bg-gradient, .background-elements { 
        opacity: 0.95; 
    }
    .floral-item, .particle { 
        display: none !important; 
    }

    body {
        overflow-x: hidden;
    }

    .container, 
    .hero-content, 
    .about-content, 
    .skills-container, 
    .projects-grid, 
    .certifications-grid,
    .contact-container {
        max-width: 100%;
    }
}

/* Very Small Screens (max-width: 320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

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

    .profile-img {
        width: 220px;
        height: 220px;
    }
}

/* ==========================================================================
   iOS SPECIFIC FIXES
   ========================================================================== */

@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
        height: -webkit-fill-available;
    }
    
    section {
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   DESKTOP CURSOR EFFECTS
   ========================================================================== */

@media (min-width: 769px) {
    .cursor {
        mix-blend-mode: difference;
    }
    
    .cursor-follower {
        mix-blend-mode: difference;
        animation: cursorPulse 2s ease-in-out infinite;
    }
    
    @keyframes cursorPulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .background-elements,
    .cursor,
    .cursor-follower,
    .scroll-top,
    .theme-btn,
    #header {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   END OF STYLE.CSS
   ========================================================================== */
