:root {
    /* Updated softer color palette */
    --primary-color: #00d4ff;
    --secondary-color: #ff1b75;
    --accent-color: #ffb347;
    --bg-dark: #0a0e27;
    --bg-darker: #030531;
    --bg-darkest: #00021700;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --card-bg: rgba(20, 25, 50, 0.85);
    --glow-color: rgba(0, 212, 255, 0.4);
    --glow-intensity: 0.4;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom cursor only on desktop with fine pointer */
@media (pointer: fine) and (min-width: 768px) {
    body {
        cursor: none;
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(0, 184, 212, 0.2);
}

.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--primary-color);
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px var(--glow-color);
}

/* Video Background */
.hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0.4;
    z-index: -1;
    filter: brightness(0.7) contrast(1.2);
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(0, 212, 255, 0.03) 50px, rgba(0, 212, 255, 0.03) 51px),
        repeating-linear-gradient(-45deg, transparent, transparent 50px, rgba(255, 0, 110, 0.03) 50px, rgba(255, 0, 110, 0.03) 51px);
    animation: bgScroll 60s linear infinite;
}

@keyframes bgScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* GitHub Badge */
.github-badge {
    position: fixed;
    top: 90px;
    right: 30px;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.github-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
    animation: none;
}

.badge-icon {
    width: 24px;
    height: 24px;
    animation: spin 20s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 184, 212, 0.2);
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--glow-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

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

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(10, 14, 39, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Typing effect for hero title */
.typing-text {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

.hero-logo {
    width: 80px;
    height: 80px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px var(--glow-color)); }
    50% { filter: drop-shadow(0 0 40px var(--glow-color)); }
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-gray);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.4);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

/* Section Styling */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

/* Maker Manifest Section */
.manifest-box {
    background: rgba(20, 25, 50, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 3rem;
    border: 2px solid rgba(0, 184, 212, 0.3);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 184, 212, 0.2);
    transition: all 0.4s ease;
}

.manifest-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 184, 212, 0.3);
    border-color: var(--primary-color);
}

.manifest-box h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.manifest-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.manifest-value {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.manifest-value span {
    font-size: 2rem;
    flex-shrink: 0;
}

.manifest-value div h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.manifest-value div p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Equipment Grid */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Glassmorphism card effect */
.glass-card {
    background: rgba(20, 25, 50, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 212, 255, 0.25);
}

/* Ripple effect for buttons and clickable elements */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.equipment-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.equipment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.equipment-card:hover::before {
    transform: scaleX(1);
}

.equipment-card:hover {
    transform: translateY(-15px) rotate(-2deg);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.4);
    border-color: var(--primary-color);
}

.equipment-image {
    width: 100%;
    height: 200px;
    margin: 0 auto 1.5rem;
    display: block;
    object-fit: contain;
    border-radius: 10px;
    animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.equipment-card:hover .equipment-image {
    animation: none;
    transform: scale(1.1) rotate(5deg);
}

.equipment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.equipment-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.equipment-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

.equipment-tag {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 27, 117, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.03) rotate(-1deg);
    box-shadow: 0 25px 60px rgba(255, 0, 110, 0.4);
    border-color: var(--secondary-color);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 110, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1) rotate(2deg);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.project-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(255, 0, 110, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 0, 110, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-dark);
    margin: 5% auto;
    padding: 3rem;
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: slideIn 0.3s;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-gray);
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
}

.close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-emoji {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-image {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-project-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.modal h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.modal .project-tech {
    justify-content: center;
    margin-top: 2rem;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 179, 71, 0.3);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out;
}

.news-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 18px 45px rgba(255, 190, 11, 0.4);
    border-color: var(--accent-color);
    background: rgba(20, 25, 50, 0.5);
}

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

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

.news-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.news-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Web Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 179, 71, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-12px) rotate(3deg) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 190, 11, 0.4);
    border-color: var(--accent-color);
    background: rgba(20, 25, 50, 0.6);
}

.tool-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tool-card:hover .tool-icon {
    animation: none;
    transform: scale(1.2) rotate(360deg);
    transition: transform 0.5s ease;
}

.tool-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.tool-card p {
    color: var(--text-gray);
}

/* 3D Model Viewer */
#model-viewer-container {
    margin-top: 2rem;
    display: none;
}

#model-viewer-container.active {
    display: block;
}

model-viewer {
    width: 100%;
    height: 500px;
    background-color: var(--bg-dark);
    border-radius: 20px;
    border: 2px solid var(--accent-color);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.5);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 3px solid rgba(0, 212, 255, 0.3);
}

.team-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: block;
    border: 3px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    animation: float 4s ease-in-out infinite;
}

.team-card:hover .team-avatar-img {
    animation: none;
    transform: scale(1.1) rotate(5deg);
    border-color: var(--secondary-color);
}

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.team-role {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.skill-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    position: relative;
    z-index: 10;
    background: var(--bg-darkest);
    padding: 2rem 0;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: rgba(20, 25, 50, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.4s ease;
    animation: slideInScale 0.6s ease-out;
}

.stat-box:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(20, 25, 50, 0.7);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 2px solid var(--primary-color);
    margin-top: 4rem;
}

footer p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-badges img {
    height: 20px;
    transition: transform 0.3s;
}

.footer-badges img:hover {
    transform: scale(1.1);
}

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

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.social-links a span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-top: 2px solid var(--primary-color);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

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

    .hero-content h2 {
        font-size: 1.3rem;
    }

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

    .equipment-grid,
    .projects-grid,
    .tools-grid,
    .team-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .github-badge {
        top: 80px;
        right: 15px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .badge-icon {
        width: 20px;
        height: 20px;
    }

    .modal-content {
        width: 95%;
        padding: 2rem;
        margin: 10% auto;
    }

    .manifest-values {
        grid-template-columns: 1fr;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

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

/* Notification animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* Lightbox Gallery Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 184, 212, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(0, 184, 212, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.lightbox-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.lightbox-thumbnail:hover,
.lightbox-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.gallery-button {
    display: inline-block;
    margin: 1rem auto;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 184, 212, 0.3);
}

.gallery-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 184, 212, 0.5);
}

/* Matrix Mode Easter Egg */
.matrix-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5000;
    overflow: hidden;
}

.matrix-char {
    position: absolute;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    text-shadow: 0 0 10px var(--primary-color);
    animation: matrix-fall linear infinite;
}

@keyframes matrix-fall {
    0% {
        top: -50px;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.matrix-active {
    filter: hue-rotate(120deg) brightness(1.2);
}

.matrix-active .custom-cursor {
    border-color: #00ff00;
    box-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    pointer-events: none;
    z-index: 6000;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Logo Rotation on Hover */
.logo-icon:hover {
    animation: logo-spin 1s ease-in-out;
}

@keyframes logo-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Gradient text animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content h1 {
    background-size: 200% auto;
    animation: glow 3s ease-in-out infinite, gradient-shift 8s ease infinite;
}

.section-title {
    background-size: 200% auto;
    animation: gradient-shift 6s ease infinite;
}

/* Scroll-based animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-bottom {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible,
.slide-in-right.visible,
.slide-in-bottom.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger animations for stat boxes */
.stat-box:nth-child(1) { transition-delay: 0s; }
.stat-box:nth-child(2) { transition-delay: 0.1s; }
.stat-box:nth-child(3) { transition-delay: 0.2s; }
.stat-box:nth-child(4) { transition-delay: 0.3s; }

/* Mobile responsiveness for custom cursor */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .custom-cursor,
    .cursor-trail {
        display: none;
    }
}

/* Lazy loading image placeholder */
img[data-src] {
    filter: blur(10px);
    transition: filter 0.3s;
}

img[data-src].loaded {
    filter: blur(0);
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 184, 212, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin-loader 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin-loader {
    to { transform: rotate(360deg); }
}

/* Smooth image fade-in */
img {
    opacity: 1;
    animation: fadeInImage 0.5s ease-in forwards;
}

@keyframes fadeInImage {
    to { opacity: 1; }
}

/* Enhanced button animations */
.btn, .gallery-button {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.btn:active, .gallery-button:active {
    transform: scale(0.95);
}

/* Focus states for accessibility */
a:focus, button:focus, .btn:focus, .project-card:focus,
.tool-card:focus, .equipment-card:focus, .news-card:focus, .team-card:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10001;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 0;
}

/* Pulse animation for call-to-action */
.btn-primary {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 5px 25px rgba(0, 184, 212, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(0, 184, 212, 0.7);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    
    .custom-cursor,
    .cursor-trail,
    .matrix-mode,
    .confetti {
        display: none !important;
    }
}
