:root {
    --color-background-void: #000000;
    --color-primary-cyan: #00f2ea;
    --color-secondary-purple: #7b2cbf;
    --color-accent-pink: #ff0055;
    --color-text-main: #ffffff;
    --color-text-dimmed: #9ca3af;
    --border-glass-white: rgba(255, 255, 255, 0.1);
    --font-family-tech: "Courier New", monospace;
    --font-family-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ease-curve-explosive: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-background-void);
    color: var(--color-text-main);
    font-family: var(--font-family-sans);
    overflow-x: hidden;
    line-height: 1.6;
}

body.loaded {
    overflow-y: auto;
}

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

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-cyan);
    border-radius: 3px;
}

#loader {
    position: fixed;
    inset: 0;
    background-color: #000000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#loader .text {
    position: absolute;
    bottom: 20%;
    font-family: var(--font-family-tech);
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    color: var(--color-primary-cyan);
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 242, 234, 0.8);
    font-weight: bold;
}

#blackhole-singularity-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass-white);
    padding: 15px 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: var(--color-primary-cyan);
    filter: drop-shadow(0 0 8px var(--color-primary-cyan));
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-dimmed);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary-cyan);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 10px var(--color-primary-cyan);
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

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

.menu-btn {
    display: none;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.scroll-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-curve-explosive), transform 0.8s var(--ease-curve-explosive);
}

.scroll-hidden.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-dimmed);
    max-width: 650px;
    margin-bottom: 50px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 25px;
}

.cta-btn {
    padding: 18px 45px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    font-weight: 800;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-btn.primary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.time-tracker {
    padding: 100px 5%;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid var(--border-glass-white);
    border-bottom: 1px solid var(--border-glass-white);
    position: relative;
}

.time-tracker-title {
    text-align: center;
    font-family: var(--font-family-tech);
    font-size: 1.1rem;
    color: var(--color-primary-cyan);
    letter-spacing: 0.3em;
    margin-bottom: 60px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 242, 234, 0.6);
}

.time-units {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(10, 10, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    min-width: 140px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.time-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.time-unit:hover::before {
    opacity: 1;
}

.time-value {
    display: block;
    font-family: var(--font-family-tech);
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 10px;
}

.time-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-dimmed);
    font-weight: 600;
}

.ms-unit .time-value {
    color: var(--color-accent-pink);
    text-shadow: 0 0 20px var(--color-accent-pink);
}

section {
    padding: 150px 5%;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 100px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #ffffff;
    font-weight: 900;
}

.about-timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 80px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: #000000;
    border: 2px solid #ffffff;
    transform: rotate(45deg);
    z-index: 5;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

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

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

.timeline-item:hover::after {
    background: #ffffff;
    transform: rotate(225deg) scale(1.2);
}

.timeline-content {
    background: rgba(20, 20, 24, 0.85);
    border: 1px solid var(--border-glass-white);
    padding: 40px;
    position: relative;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 60%);
    opacity: 1;
    pointer-events: none;
}

.timeline-date {
    font-family: var(--font-family-tech);
    color: var(--color-primary-cyan);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 10px rgba(0, 242, 234, 0.5);
}

.timeline-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 800;
}

.timeline-content p {
    color: var(--color-text-dimmed);
    font-size: 1.1rem;
    line-height: 1.8;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.member-card {
    background: rgba(10, 10, 12, 0.9);
    border: 1px solid var(--border-glass-white);
    padding: 50px 30px;
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.member-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
}

.member-name {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 800;
}

.member-role {
    color: var(--color-primary-cyan);
    font-family: var(--font-family-tech);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: block;
    letter-spacing: 0.1em;
}

.member-desc {
    color: var(--color-text-dimmed);
    font-size: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    height: 550px;
    perspective: 2000px;
    background: transparent;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.project-card.flipped .project-card-inner {
    transform: rotateY(180deg);
}

.project-front, .project-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 50px;
    background: #080808;
    border: 1px solid var(--border-glass-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-back {
    transform: rotateY(180deg);
    background: #0c0c0c;
    border: 1px solid var(--color-primary-cyan);
    box-shadow: inset 0 0 50px rgba(0, 242, 234, 0.1);
}

.project-icon {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 30px;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
}

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

.project-tag {
    font-family: var(--font-family-tech);
    font-size: 0.8rem;
    color: var(--color-primary-cyan);
    border: 1px solid rgba(0, 242, 234, 0.4);
    padding: 8px 16px;
    background: rgba(0, 242, 234, 0.05);
}

.view-details {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    padding-top: 25px;
    border-top: 1px solid var(--border-glass-white);
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-details::after {
    content: '→';
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.project-card:hover .view-details::after {
    transform: translateX(10px);
}

.project-features li {
    list-style: none;
    color: var(--color-text-dimmed);
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
}

.project-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary-cyan);
    box-shadow: 0 0 10px var(--color-primary-cyan);
}

.project-stats {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.stat-value {
    display: block;
    font-family: var(--font-family-tech);
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-dimmed);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-link {
    margin-top: 30px;
    display: block;
    text-align: center;
    background: #ffffff;
    color: #000000;
    padding: 18px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: 0.3s;
}

.project-link:hover {
    background: var(--color-primary-cyan);
    box-shadow: 0 0 40px rgba(0, 242, 234, 0.5);
}

footer {
    position: relative;
    background: #000000;
    padding: 120px 5% 50px;
    border-top: 1px solid var(--border-glass-white);
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto 100px;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.footer-desc {
    color: var(--color-text-dimmed);
    line-height: 1.8;
    font-size: 1rem;
}

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

.social-link {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-glass-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.social-link:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.footer-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 0.2em;
}

.footer-links li, .contact-info li {
    list-style: none;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--color-text-dimmed);
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(10px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--color-text-dimmed);
    font-size: 1.1rem;
}

.contact-info i {
    color: #ffffff;
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    border-top: 1px solid var(--border-glass-white);
    padding-top: 50px;
    position: relative;
    overflow: hidden;
}

.copyright-inner {
    font-family: var(--font-family-tech);
    font-size: 1rem;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, #333333, #ffffff, #333333);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShineAnimation 4s linear infinite;
    position: relative;
    z-index: 2;
}

.copyright-scan {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    box-shadow: 0 0 30px #ffffff;
    animation: scanLinePassAnimation 3s cubic-bezier(0.6, 0, 0.4, 1) infinite;
    z-index: 1;
}

@keyframes textShineAnimation {
    to { background-position: 200% center; }
}

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

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero {
        padding: 0 5%;
        justify-content: center;
        text-align: center;
    }
    
    .hero-content {
        width: 100%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        align-items: center;
    }

    .nav-links.show {
        transform: translateY(0);
    }

    .menu-btn {
        display: block;
    }

    section {
        padding: 80px 5%;
    }

    .about-timeline::before {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 0 0 0 35px !important;
        text-align: left !important;
    }

    .timeline-item::after {
        left: 5px !important;
        right: auto !important;
    }

    .timeline-content {
        padding: 25px;
    }

    .time-unit {
        min-width: 80px;
        padding: 15px;
    }

    .time-value {
        font-size: 2.5rem;
    }

    .project-card {
        height: auto;
    }
    
    .project-card-inner {
        transform: none !important;
    }
    
    .project-front, .project-back {
        position: relative;
        transform: none !important;
        height: auto;
        opacity: 1 !important;
        backface-visibility: visible;
        margin-bottom: 20px;
    }
    
    .project-back {
        display: none;
    }
    
    .project-card.flipped .project-back {
        display: flex;
    }
    
    .project-card.flipped .project-front {
        display: none;
    }
}
