:root {
    --bg-dark: #09090b;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa; 
    --glass-blur: blur(24px);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

[data-theme="light"] {
    --bg-dark: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.6);
    --border-color: rgba(0, 0, 0, 0.1);
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: default;
}

/* Glowing cursor follower */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.custom-cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 30px; height: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Background Gradients */
.bg-gradient-1, .bg-gradient-2 {
    display: none;
}

/* Typography Elements */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Syne', sans-serif;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    font-weight: 800;
}

.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

/* Glowing Border Effect for Glass */
.glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass:hover::before {
    opacity: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.7);
}

.navbar.scrolled {
    top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.3));
    transition: var(--transition);
}

.nav-logo:hover {
    filter: drop-shadow(0 0 15px var(--primary-color));
    transform: scale(1.05);
}

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

.nav-links li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* General Layout */
.section {
    padding: 120px 30px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.section-title {
    font-size: 3.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    display: block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    box-shadow: 0 0 15px var(--primary-color);
}

.section-title span {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(188, 19, 254, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.6);
}

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

.btn-secondary:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2) inset;
    transform: translateY(-5px) scale(1.05);
}

/* Hero Section */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.title {
    font-size: 5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 2.2rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-5px) rotate(360deg);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,242,254,0.3) 0%, rgba(188,19,254,0.1) 40%, rgba(0,0,0,0) 70%);
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    border-radius: 30px;
    z-index: 2;
    position: relative;
    /* Black and white filter as requested */
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-image-wrapper:hover .hero-image {
    filter: grayscale(0%) contrast(1.1) brightness(1);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
}

.hero-image-wrapper:hover .hero-image-glow {
    opacity: 1;
}

/* Experience Section */
.experience-container {
    display: flex;
    justify-content: center;
}

.experience-card {
    padding: 50px;
    max-width: 900px;
    width: 100%;
}

.exp-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.exp-logo {
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1)) grayscale(100%);
    transition: var(--transition);
}

.experience-card:hover .exp-logo {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2)) grayscale(0%);
    transform: scale(1.05);
}

.exp-header {
    text-align: center;
    margin-bottom: 30px;
}

.exp-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.exp-date {
    display: inline-block;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.exp-list {
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.exp-list li {
    margin-bottom: 15px;
    position: relative;
    list-style: none;
}

.exp-list li::before {
    content: '▹';
    position: absolute;
    left: -25px;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--primary-color);
}

.exp-list li strong {
    color: var(--text-main);
}

/* "What I think I'm good at" - Skills */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.skills-category h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-main);
    text-align: center;
}

.skills-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.skill-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.2);
    border-color: var(--primary-color);
}

.skill-card:hover .skill-icon {
    transform: scale(1.2);
    text-shadow: 0 0 20px var(--primary-color);
}

.skill-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    transition: var(--transition);
    display: inline-block;
}

.skill-card h4 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}
.skill-tags span {
    font-size: 0.8rem;
    padding: 4px 12px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 15px;
    color: var(--primary-color);
}

/* Education Section */
.education-summary {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.edu-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.edu-text strong {
    color: var(--text-main);
}

.edu-badges {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.badge-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.edu-badge {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.badge-item:hover .edu-badge {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Projects Section (Bigger) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-content: center;
}

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    outline: none !important;
}

.project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(188, 19, 254, 0.3);
    border-color: var(--secondary-color);
}

.project-image {
    width: 100%;
    height: 280px; /* Increased height */
    overflow: hidden;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    pointer-events: none;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    filter: brightness(0.8);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: brightness(1);
}

.project-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
    background: var(--bg-card);
}

.project-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
    letter-spacing: 1px;
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.project-tags span {
    font-size: 0.85rem;
    padding: 6px 15px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.project-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-link:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.contact-item i {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
    transition: var(--transition);
}

.contact-item:hover i {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 30px var(--primary-color);
    transform: scale(1.1);
}

.contact-item span {
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 242, 254, 0.05);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    color: var(--text-muted);
}


/* Responsive Design */
@media screen and (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .title {
        font-size: 4rem;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 0;
        text-align: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        border-bottom: 1px solid var(--primary-color);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .title {
        font-size: 3rem;
    }

    .section {
        padding: 100px 20px 40px;
    }

    .project-image {
        height: 220px;
    }
}

/* CSS Logo removed */

/* Hero Sequential Load */
.seq-1, .seq-2, .seq-3, .seq-4 {
    opacity: 0;
    animation: seqFadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.seq-1 { animation-delay: 0.1s; }
.seq-2 { animation-delay: 0.3s; }
.seq-3 { animation-delay: 0.5s; }
.seq-4 { animation-delay: 0.7s; }

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

/* Colorful Cursor Effect - Removed */
#cursor-glow {
    display: none !important;
}

/* Ticker Marquee */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
    padding: 20px 0;
}
.ticker-move {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    gap: 30px;
}
.ticker-move:hover {
    animation-play-state: paused;
}
.ticker-item {
    display: inline-block;
}
.ticker-item img {
    height: 280px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
    object-fit: cover;
}
.ticker-item img:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

/* Colorful Glow on Glass Hover */
.glass {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.glass:hover {
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1), 0 5px 15px rgba(188, 19, 254, 0.05);
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.2);
}

/* --- Preloader & SVG Animation --- */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.svg-anim path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawPath 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}
.loader-text {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--text-main);
    opacity: 0;
    animation: fadeInText 1s ease 1.2s forwards;
}
@keyframes fadeInText {
    to { opacity: 1; }
}

/* --- Nav SVG Logo --- */
.nav-svg-logo {
    color: var(--text-main);
    transition: var(--transition);
}
.logo-link:hover .nav-svg-logo {
    color: var(--primary-color);
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--text-main);
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--bg-dark);
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}
.close-modal {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}
.close-modal:hover {
    color: var(--text-main);
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item img:hover {
    transform: scale(1.05);
}

/* --- Modal Detailed View Custom Styles --- */
.modal-project-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Syne', sans-serif;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 10px;
}
.modal-project-date {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}
.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}
.modal-gallery-main {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.2);
}
.modal-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.modal-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.modal-thumb {
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}
.modal-thumb.active, .modal-thumb:hover {
    border-color: var(--primary-color);
    opacity: 1;
}
.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-section {
    margin-bottom: 25px;
}
.modal-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}
.modal-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.modal-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}
.modal-highlights li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.modal-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.modal-tags span {
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.skills-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}
.modal-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.modal-btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.modal-btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}
.modal-btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.modal-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Gym Comparison Styles */
.gym-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}
.comparison-box {
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}
.comparison-box img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}
.comparison-label {
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(0,0,0,0.4);
    border-top: 1px solid var(--border-color);
}
.interest-hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}
@media (max-width: 768px) {
    .gym-comparison {
        grid-template-columns: 1fr;
    }
}

/* Dashboards Gallery */
.dashboards-gallery {
    width: 100%;
    overflow-x: hidden;
    padding: 20px 0;
}
.dashboard-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}
.dashboard-reveal {
    width: 90%;
    max-width: 800px;
}
.dashboard-reveal img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}
[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}
