:root {
    --bg-color: #05050A; /* Dramatic: Very deep sapphire/plum black */
    --text-color: #eaeaea; 
    --accent-color: #d4af37; /* Opulent Gold */
    --secondary-color: #10121A; /* Deep tone (sapphire/plum hint) */
    --glass-bg: rgba(5, 5, 10, 0.85);
    --border-color: rgba(212, 175, 55, 0.15); /* Hint of gold in borders */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --gradient-1: linear-gradient(135deg, #0f172a 0%, #2e1025 100%); /* Sapphire to plum */
    --gradient-2: linear-gradient(135deg, #064e3b 0%, #0f172a 100%); /* Emerald to sapphire */
    --gradient-3: linear-gradient(120deg, #d4af37 0%, #f3e5ab 100%); /* Gold pop */
    
    /* Utility variables */
    --shadow-color: rgba(255, 255, 255, 0.1);
    --shadow-color-hover: rgba(255, 255, 255, 0.2);
    --btn-outline-bg: rgba(255, 255, 255, 0.05);
    --btn-outline-border: rgba(255, 255, 255, 0.2);
    --cursor-hover-bg: rgba(255, 255, 255, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --img-box-shadow: rgba(0, 0, 0, 0.5);
    --contact-shadow: rgba(0, 0, 0, 0.3);
    --icon-shadow: rgba(0, 0, 0, 0.2);
    --icon-hover-shadow: rgba(0, 0, 0, 0.3);
}

body.light-mode {
    --bg-color: #faf9f6; /* Off-white/light gray */
    --text-color: #121212; /* Black */
    --accent-color: #b8962e; /* Slightly deeper gold for contrast */
    --secondary-color: #f2efe9; /* Champagne tone */
    --glass-bg: rgba(250, 249, 246, 0.85);
    --border-color: rgba(184, 150, 46, 0.2); 
    --gradient-1: linear-gradient(135deg, #e6dfd3 0%, #f2efe9 100%); /* Soft champagne */
    --gradient-2: linear-gradient(135deg, #ffffff 0%, #e6dfd3 100%); /* Pearl to champagne */
    --gradient-3: linear-gradient(120deg, #b8962e 0%, #dfb841 100%); /* Gold pop */
    
    /* Utility variables */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-hover: rgba(0, 0, 0, 0.15);
    --btn-outline-bg: rgba(0, 0, 0, 0.05);
    --btn-outline-border: rgba(0, 0, 0, 0.2);
    --cursor-hover-bg: rgba(0, 0, 0, 0.1);
    --overlay-bg: rgba(255, 255, 255, 0.6);
    --img-box-shadow: rgba(0, 0, 0, 0.1);
    --contact-shadow: rgba(0, 0, 0, 0.1);
    --icon-shadow: rgba(0, 0, 0, 0.05);
    --icon-hover-shadow: rgba(0, 0, 0, 0.15);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: var(--cursor-hover-bg);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-link {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

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

/* Theme Toggle */
.theme-toggle {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

body.light-mode .theme-toggle .sun-icon {
    display: block;
}

body.light-mode .theme-toggle .moon-icon {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .header {
        padding: 1rem 5%;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Changed from height to min-height for responsiveness */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered by default, but content will split */
    position: relative;
    padding: 100px 5%;
    /* Added padding top for header */
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    /* Slightly smaller to fit single line if needed, or keep large */
    margin-bottom: 1.5rem;
    line-height: 1.1;
    display: block;
    /* changed from flex column */
}

.reveal-text {
    display: inline-block;
    /* Allows animation */
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.reveal-text:nth-child(1) {
    animation-delay: 0.2s;
}

/* ... keep highlight ... */
.highlight {
    color: var(--accent-color);
    background: var(--gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.8s;
}

/* Hero Image Profile */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.5s;
}

.hero-profile-img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Organic shape */
    border: 4px solid var(--accent-color);
    /* Gold border trace */
    box-shadow: 0 20px 50px var(--img-box-shadow);
    z-index: 2;
    animation: morph 8s ease-in-out infinite;
    background-color: var(--secondary-color);
    /* Fallback */
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 1.5rem;
    /* Gap between islands */
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    /* Pillow shape */
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: none;
    margin: 0;
    /* Let flex gap handle spacing */
    font-size: 0.95rem;
    min-width: 160px;
    /* Ensure they have some substance */
    text-align: center;
}

/* Specific styling for islands */
.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 2px solid var(--text-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color-hover);
}

.btn-outline {
    background-color: var(--btn-outline-bg);
    /* Slight background for island feel */
    color: var(--text-color);
    border: 2px solid var(--btn-outline-border);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
    transform: translateY(-3px);
}

/* Hero Title Tweaks */
.hero-title span {
    display: block;
    /* Force each span to own line */
}

/* ... keep btn-primary/outline ... */
.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Animated Blobs - Adjust positioning for split layout */
.blob-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--accent-color);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--gradient-1);
}

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

/* Animated Blobs Base */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    animation: moveBlob 20s infinite alternate;
}

@keyframes moveBlob {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, -50px) scale(1.1);
    }
}



/* Sections */
.section {
    padding: 8rem 5%;
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 105%;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

/* About Section */
.mobile-stack {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
    font-size: 1.2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: var(--border-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Work Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.project-card {
    background-color: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 250px;
    background-color: #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-1 {
    background: var(--gradient-1);
}

.gradient-2 {
    background: var(--gradient-2);
}

.gradient-3 {
    background: var(--gradient-3);
}

.project-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--overlay-bg);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
}

.image-overlay {
    width: 100%;
    height: 100%;
    /* Placeholder image or overlay */
    background: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.project-card:hover .image-overlay {
    opacity: 1;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-link:hover {
    color: var(--accent-color);
}

/* Contact */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary-color);
    padding: 4rem;
    border-radius: 20px;
}

.contact-left {
    flex: 1;
}

.socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    font-size: 1.1rem;
    border-bottom: 1px solid transparent;
}

.social-link:hover {
    border-bottom: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.big-btn {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

/* Footer */
footer {
    padding: 2rem 5%;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: auto;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    left: 12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--secondary-color);
    position: relative;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.role {
    display: block;
    margin-bottom: 15px;
    font-style: italic;
    color: #bbb;
    font-family: var(--font-heading);
}

.timeline-content ul {
    list-style-type: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #ccc;
}

.timeline-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.highlight-tag {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.patent-block {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.patent-block h3 {
    margin-bottom: 1rem;
}

/* Clients Section */
.clients .section-title {
    text-align: left;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 150px;
    filter: grayscale(0.5);
    /* Less intense grayscale */
    opacity: 0.8;
    /* Higher initial opacity */
    transition: all 0.4s ease;
}

.client-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.client-name {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    font-weight: 500;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-5px);
}

.client-logo:hover .client-name {
    color: var(--accent-color);
}

/* Interests */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.interest-item {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.interest-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: var(--border-color);
}

.interest-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.interest-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.interest-item p {
    font-size: 0.9rem;
    color: #aaa;
}

/* Contact Section Redesign */
.contact-card {
    background: var(--secondary-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 40px 100px var(--contact-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header .section-title {
    margin-bottom: 0.5rem;
    display: inline-block;
}

.contact-tagline {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 500px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    box-shadow: 0 10px 20px var(--icon-shadow);
    flex-shrink: 0;
}

.contact-detail label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-detail a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: var(--accent-color);
}

.contact-actions {
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
}

.contact-actions p {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #888;
}

.big-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px var(--icon-shadow);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--icon-hover-shadow);
    background: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-image-container {
        order: 1;
        justify-content: center;
    }

    .hero-profile-img {
        width: 280px;
        height: 280px;
    }

    .btn {
        margin: 0 5px 10px 5px;
    }

    .mobile-stack {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-card {
        padding: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-header {
        margin-bottom: 2rem;
    }

    .socials {
        justify-content: center;
    }

    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav.active {
        display: flex;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 30px;
        height: 2px;
        background: var(--text-color);
        margin: 6px 0;
    }
}

/* Education */
.edu-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 10px;
}

.edu-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.timeline-content:hover .edu-logo {
    filter: grayscale(0);
    transform: scale(1.1);
}

.edu-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.edu-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 80px;
}

.edu-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.edu-content p {
    color: #aaa;
    font-size: 1.1rem;
}

@media (max-width: 768px) {}

/* ========================================= */
/* Additional Features (Animations & UX)     */
/* ========================================= */

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}
.preloader.loaded {
    opacity: 0;
    pointer-events: none;
}
.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    width: 0%;
    z-index: 9999;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Items */
.magnetic {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Skill Filters */
.skill-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}
.tag.hidden {
    display: none !important;
}

/* Typing Cursor */
.typed-cursor {
    color: var(--accent-color);
    font-size: 3.5rem;
    font-weight: 300;
}
@media (max-width: 768px) {
    .typed-cursor { font-size: 2.5rem; }
}

/* Testimonials Carousel */
.testimonial-swiper {
    padding-bottom: 4rem;
}
.testimonial-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.quote-icon {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 1rem;
}
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 2rem;
    flex-grow: 1;
}
.testimonial-author h4 {
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}
.testimonial-author span {
    font-size: 0.9rem;
    color: #888;
}
.swiper-pagination-bullet {
    background: var(--text-color) !important;
}
.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
}