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

:root {
    --bg-primary: #000;
    --bg-secondary: rgba(0, 0, 0, 0.7);
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.2);
    --overlay-gradient: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    --overlay-text-primary: #fff;
    --overlay-text-secondary: rgba(255, 255, 255, 0.7);
    --overlay-text-tertiary: rgba(255, 255, 255, 0.5);
    --overlay-badge-bg: rgba(255, 255, 255, 0.9);
    --overlay-badge-text: #000;
    --shadow-sm: 0 0 30px rgba(255, 255, 255, 0.1), 0 0 60px rgba(255, 255, 255, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 0 30px rgba(255, 255, 255, 0.1), 0 0 60px rgba(255, 255, 255, 0.05);
}

body.light-theme {
    --bg-primary: #fff;
    --bg-secondary: rgba(255, 255, 255, 0.9);
    --text-primary: #000;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-tertiary: rgba(0, 0, 0, 0.5);
    --border-color: rgba(0, 0, 0, 0.15);
    --overlay-gradient: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    --overlay-text-primary: #fff;
    --overlay-text-secondary: rgba(255, 255, 255, 0.85);
    --overlay-text-tertiary: rgba(255, 255, 255, 0.65);
    --overlay-badge-bg: #fff;
    --overlay-badge-text: #000;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --card-hover-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 16px 64px rgba(0, 0, 0, 0.08);
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.theme-toggle svg {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.light-theme .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.light-theme .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* Navbar Styles */
.navbar {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.navbar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    height: 50px;
    width: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-btn {
    background: var(--text-primary);
    border: none;
    color: var(--bg-primary);
    padding: 0.6rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.glitch {
    position: relative;
    display: inline-block;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }
    10% {
        transform: skew(-2deg);
    }
    20% {
        transform: skew(2deg);
    }
    30% {
        transform: skew(-1deg);
    }
    40% {
        transform: skew(1deg);
    }
    50% {
        transform: skew(-2deg);
    }
    60% {
        transform: skew(2deg);
    }
    70% {
        transform: skew(-1deg);
    }
    80% {
        transform: skew(1deg);
    }
    90% {
        transform: skew(0deg);
    }
    100% {
        transform: skew(-1deg);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(61px, 9999px, 85px, 0);
        transform: skew(0.5deg);
    }
    5% {
        clip: rect(33px, 9999px, 98px, 0);
        transform: skew(0.93deg);
    }
    10% {
        clip: rect(85px, 9999px, 61px, 0);
        transform: skew(0.18deg);
    }
    15% {
        clip: rect(16px, 9999px, 100px, 0);
        transform: skew(0.83deg);
    }
    20% {
        clip: rect(99px, 9999px, 43px, 0);
        transform: skew(0.1deg);
    }
    25% {
        clip: rect(6px, 9999px, 50px, 0);
        transform: skew(0.43deg);
    }
    30% {
        clip: rect(68px, 9999px, 19px, 0);
        transform: skew(0.37deg);
    }
    35% {
        clip: rect(40px, 9999px, 92px, 0);
        transform: skew(0.55deg);
    }
    40% {
        clip: rect(87px, 9999px, 8px, 0);
        transform: skew(0.26deg);
    }
    45% {
        clip: rect(28px, 9999px, 77px, 0);
        transform: skew(0.15deg);
    }
    50% {
        clip: rect(55px, 9999px, 31px, 0);
        transform: skew(0.66deg);
    }
    55% {
        clip: rect(12px, 9999px, 95px, 0);
        transform: skew(0.22deg);
    }
    60% {
        clip: rect(73px, 9999px, 24px, 0);
        transform: skew(0.77deg);
    }
    65% {
        clip: rect(47px, 9999px, 69px, 0);
        transform: skew(0.41deg);
    }
    70% {
        clip: rect(91px, 9999px, 14px, 0);
        transform: skew(0.88deg);
    }
    75% {
        clip: rect(22px, 9999px, 86px, 0);
        transform: skew(0.33deg);
    }
    80% {
        clip: rect(64px, 9999px, 38px, 0);
        transform: skew(0.59deg);
    }
    85% {
        clip: rect(9px, 9999px, 72px, 0);
        transform: skew(0.11deg);
    }
    90% {
        clip: rect(81px, 9999px, 27px, 0);
        transform: skew(0.74deg);
    }
    95% {
        clip: rect(35px, 9999px, 63px, 0);
        transform: skew(0.48deg);
    }
    100% {
        clip: rect(58px, 9999px, 45px, 0);
        transform: skew(0.29deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 119px, 0);
        transform: skew(0.35deg);
    }
    5% {
        clip: rect(52px, 9999px, 74px, 0);
        transform: skew(0.62deg);
    }
    10% {
        clip: rect(79px, 9999px, 38px, 0);
        transform: skew(0.19deg);
    }
    15% {
        clip: rect(31px, 9999px, 103px, 0);
        transform: skew(0.71deg);
    }
    20% {
        clip: rect(94px, 9999px, 15px, 0);
        transform: skew(0.44deg);
    }
    25% {
        clip: rect(23px, 9999px, 88px, 0);
        transform: skew(0.56deg);
    }
    30% {
        clip: rect(67px, 9999px, 42px, 0);
        transform: skew(0.27deg);
    }
    35% {
        clip: rect(11px, 9999px, 96px, 0);
        transform: skew(0.83deg);
    }
    40% {
        clip: rect(76px, 9999px, 29px, 0);
        transform: skew(0.14deg);
    }
    45% {
        clip: rect(44px, 9999px, 81px, 0);
        transform: skew(0.68deg);
    }
    50% {
        clip: rect(59px, 9999px, 36px, 0);
        transform: skew(0.39deg);
    }
    55% {
        clip: rect(18px, 9999px, 92px, 0);
        transform: skew(0.51deg);
    }
    60% {
        clip: rect(71px, 9999px, 25px, 0);
        transform: skew(0.76deg);
    }
    65% {
        clip: rect(48px, 9999px, 69px, 0);
        transform: skew(0.22deg);
    }
    70% {
        clip: rect(86px, 9999px, 13px, 0);
        transform: skew(0.64deg);
    }
    75% {
        clip: rect(33px, 9999px, 77px, 0);
        transform: skew(0.47deg);
    }
    80% {
        clip: rect(62px, 9999px, 41px, 0);
        transform: skew(0.31deg);
    }
    85% {
        clip: rect(19px, 9999px, 84px, 0);
        transform: skew(0.58deg);
    }
    90% {
        clip: rect(73px, 9999px, 28px, 0);
        transform: skew(0.16deg);
    }
    95% {
        clip: rect(46px, 9999px, 91px, 0);
        transform: skew(0.72deg);
    }
    100% {
        clip: rect(54px, 9999px, 37px, 0);
        transform: skew(0.43deg);
    }
}

.navbar-container:hover,
.navbar-container.active {
    width: 400px;
}

.navbar-container:hover .explore-btn,
.navbar-container.active .explore-btn {
    opacity: 0;
    pointer-events: none;
}

body.light-theme .navbar-container {
    box-shadow: var(--shadow-sm);
}

.menu-items {
    display: flex;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-container:hover .menu-items,
.navbar-container.active .menu-items {
    opacity: 1;
    pointer-events: auto;
}

.menu-items a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.menu-items a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.menu-items a:hover {
    color: var(--text-primary);
}

.menu-items a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .navbar {
        bottom: 2rem;
    }
    
    .navbar-container {
        padding: 0.6rem 1.25rem;
        height: 45px;
        border-radius: 22px;
        width: 300px;
    }
    
    .navbar-container:hover,
    .navbar-container.active {
        width: 360px;
    }
    
    .explore-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .menu-items {
        gap: 1.5rem;
        left: 1.25rem;
    }
    
    .menu-items a {
        font-size: 0.85rem;
    }
}

.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

body.light-theme .hero-video {
    opacity: 0.85;
}

.spotify-player {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 340px;
    z-index: 10;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.spotify-player:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.spotify-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.spotify-label::before {
    content: '♫';
    font-size: 1rem;
    color: #1DB954;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.spotify-player iframe {
    border-radius: 12px;
}

@media (max-width: 768px) {
    .spotify-player {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        padding: 1rem;
    }
}

.projects {
    padding: 4rem 0;
    background: var(--bg-primary);
    width: 100%;
}

.container {
    width: 100%;
    padding: 0 2rem;
    margin: 0;
}

.tabs {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    padding: 2rem 0 1rem;
    z-index: 100;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-primary);
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    grid-auto-rows: 270px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.5s ease, box-shadow 0.3s ease;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-theme .project-item {
    border: 1px solid var(--border-color);
}

.project-item.visible {
    opacity: 1;
}

.project-item:hover {
    transform: scale(1.02);
    box-shadow: var(--card-hover-shadow);
}

.project-item.large-landscape {
    grid-column: span 8;
    grid-row: span 2;
}

.project-item.small-portrait {
    grid-column: span 4;
    grid-row: span 1;
}

.project-item.full-width {
    grid-column: span 12;
    grid-row: span 2;
}

/* Random sizes for cards 5-15 */
.project-item:nth-child(5) {
    grid-column: span 4;
    grid-row: span 1;
}

.project-item:nth-child(6) {
    grid-column: span 4;
    grid-row: span 1;
}

.project-item:nth-child(7) {
    grid-column: span 4;
    grid-row: span 1;
}

.project-item:nth-child(8) {
    grid-column: span 3;
    grid-row: span 2;
}

.project-item:nth-child(9) {
    grid-column: span 5;
    grid-row: span 3;
}

.project-item:nth-child(10) {
    grid-column: span 4;
    grid-row: span 3;
}

.project-item:nth-child(11) {
    grid-column: span 3;
    grid-row: span 1;
}

.project-item:nth-child(12) {
    grid-column: span 6;
    grid-row: span 2;
}

.project-item:nth-child(13) {
    grid-column: span 3;
    grid-row: span 1;
}

.project-item:nth-child(14) {
    grid-column: span 3;
    grid-row: span 3;
}

.project-item:nth-child(15) {
    grid-column: span 3;
    grid-row: span 2;
}

.project-item:nth-child(16) {
    grid-column: span 6;
    grid-row: span 1;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
}

.project-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

body.light-theme .project-media {
    opacity: 0.95;
}

.project-item:nth-child(1) .project-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.project-item:nth-child(2) .project-placeholder {
    background: linear-gradient(135deg, #2d1b2e 0%, #1f1a2e 100%);
}

.project-item:nth-child(3) .project-placeholder {
    background: linear-gradient(135deg, #1e2a1a 0%, #1a2e1e 100%);
}

.project-item:nth-child(4) .project-placeholder {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

.project-item:nth-child(5) .project-placeholder {
    background: linear-gradient(135deg, #2e1a1a 0%, #2e1e1a 100%);
}

.project-item:nth-child(6) .project-placeholder {
    background: linear-gradient(135deg, #1a2e2e 0%, #1e2a2e 100%);
}

.project-item:nth-child(7) .project-placeholder {
    background: linear-gradient(135deg, #2e2a1a 0%, #2e1e1a 100%);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--overlay-gradient);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1.5rem 2rem;
    text-align: left;
    height: auto;
    max-height: 35%;
}

.project-overlay::before {
    content: attr(data-card-number);
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--overlay-badge-bg);
    color: var(--overlay-badge-text);
    font-size: 1.2rem;
    font-weight: 700;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-theme .project-overlay::before {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--overlay-text-primary);
    margin-bottom: 0.25rem;
}

.project-category {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--overlay-text-secondary);
    margin-bottom: 0.15rem;
}

.project-year {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--overlay-text-tertiary);
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .project-item.large-landscape {
        grid-column: span 8;
    }
    
    .project-item.small-portrait {
        grid-column: span 4;
    }
    
    .project-item.full-width {
        grid-column: span 8;
    }
    
    /* Random sizes for cards 5-16 on tablet */
    .project-item:nth-child(5),
    .project-item:nth-child(6),
    .project-item:nth-child(7),
    .project-item:nth-child(8),
    .project-item:nth-child(9),
    .project-item:nth-child(10),
    .project-item:nth-child(11),
    .project-item:nth-child(12),
    .project-item:nth-child(13),
    .project-item:nth-child(14),
    .project-item:nth-child(15),
    .project-item:nth-child(16) {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .tabs {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .tab-btn {
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        grid-auto-rows: 250px;
    }
    
    .project-item.large-landscape,
    .project-item.small-portrait,
    .project-item.full-width,
    .project-item:nth-child(5),
    .project-item:nth-child(6),
    .project-item:nth-child(7),
    .project-item:nth-child(8),
    .project-item:nth-child(9),
    .project-item:nth-child(10),
    .project-item:nth-child(11),
    .project-item:nth-child(12),
    .project-item:nth-child(13),
    .project-item:nth-child(14),
    .project-item:nth-child(15),
    .project-item:nth-child(16) {
        grid-column: span 4;
        grid-row: span 2;
    }
}


.footer {
    background: var(--bg-primary);
    padding: 8rem 0 0;
    width: 100%;
    position: relative;
}

.footer-container {
    width: 100%;
    padding: 0 2rem;
}

.footer-cta {
    text-align: center;
    margin-bottom: 6rem;
}

.footer-cta h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.footer-cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.footer-cta-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    width: fit-content;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links a:hover::after {
    width: 100%;
}

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

.contact-info a,
.contact-info p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .footer-cta h2 {
        font-size: clamp(2rem, 5vw, 4rem);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 5rem 0 0;
    }
    
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-cta {
        margin-bottom: 4rem;
    }
    
    .footer-cta h2 {
        font-size: clamp(1.8rem, 8vw, 3rem);
        margin-bottom: 1.5rem;
    }
    
    .footer-cta-button {
        padding: 1rem 2.5rem;
        font-size: 0.95rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        padding: 1.5rem 0;
    }
    
    .footer-legal {
        gap: 1.5rem;
    }
}

/* World Tab Styles */
.world-container {
    width: 90%;
    max-width: 1400px;
    height: 70vh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    perspective: 1000px;
    border-radius: 12px;
}

.world-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    cursor: grab;
}

.world-canvas:active {
    cursor: grabbing;
}

.project-planet {
    position: absolute;
    width: 150px;
    height: 150px;
    cursor: pointer;
    transform-style: preserve-3d;
    left: 50%;
    top: 50%;
}

.planet-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border-radius: 8px;
}

/* Project Detail Modal */
.project-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-detail-modal.active {
    display: block;
    opacity: 1;
}

.project-detail-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-detail {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.close-detail:hover {
    transform: rotate(90deg);
    box-shadow: var(--shadow-md);
}

.project-detail-content {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 2rem;
    padding: 4rem 2rem 2rem 2rem;
}

.project-info {
    flex: 0 0 35%;
    padding: 3rem;
    overflow-y: auto;
    color: var(--text-primary);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.light-theme .project-info {
    border-right: 1px solid var(--border-color);
}

.project-info::-webkit-scrollbar {
    width: 0;
    display: none;
}

.project-info {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.detail-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.detail-description {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.detail-description p {
    margin-bottom: 0.75rem;
}

.detail-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-section h3 {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
}

.detail-section p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 500;
}

.project-gallery {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.gallery-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: auto;
    padding: 2rem 2rem 3rem 2rem;
    height: 100%;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: var(--text-tertiary) var(--border-color);
    position: relative;
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-progress {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.slide-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 60px;
    text-align: center;
}

.progress-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--text-primary);
    width: 8px;
    height: 8px;
}

.gallery-slide {
    flex: 0 0 auto;
    width: 600px;
    height: 80%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.gallery-slide.blank {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.gallery-slide img,
.gallery-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .project-detail-content {
        flex-direction: column;
        padding: 3rem 1.5rem 1.5rem 1.5rem;
    }
    
    .project-info {
        flex: 0 0 auto;
        max-height: 40%;
        padding: 1rem;
    }
    
    .detail-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .project-gallery {
        flex: 1;
    }
    
    .gallery-slide {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .close-detail {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .project-detail-content {
        padding: 2.5rem 1rem 1rem 1rem;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .detail-section h3 {
        font-size: 1.2rem;
    }
    
    .gallery-slide {
        width: 300px;
        height: 70%;
    }
}

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

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

.contact-modal-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    animation: slideUp 0.4s ease;
}

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

.close-contact {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-contact:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

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

.form-group input,
.form-group textarea {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.contact-info-modal {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.contact-info-modal p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-info-modal a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.contact-info-modal a:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .contact-modal-container {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .contact-content h2 {
        font-size: 2rem;
    }
    
    .close-contact {
        top: 1rem;
        right: 1rem;
    }
}

/* Services Modal */
.services-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.services-modal-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 1200px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
}

.close-services {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-services:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}

.services-content {
    padding: 4rem;
}

.services-content h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    line-height: 1.1;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-primary);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .services-content {
        padding: 2.5rem 1.5rem;
    }
    
    .services-content h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
}

/* About Modal */
.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.about-modal-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 1400px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
}

.close-about {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-about:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}

.about-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.about-intro {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        border-radius: 12px 12px 0 0;
        height: 250px;
    }
    
    .about-text {
        padding: 2rem 1.5rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .close-about {
        top: 1rem;
        right: 1rem;
    }
}
