/* CSS Variables */
:root {
    --bg-color: #0D0D0D;
    --bg-secondary: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #D4AF37;
    /* Gold */
    --accent-glow: rgba(212, 175, 55, 0.5);
    --secondary-accent: #F5E6C8;
    /* Cream */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

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

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

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-bottom: 40px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    margin-right: 8px;
    /* Reduced space as requested */
    /* Optional: Blend mode if needed for black backgrounds, but this is a PNG */
    /* mix-blend-mode: screen; */
}

.logo .dot {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.btn-glow {
    padding: 10px 25px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.btn-glow:hover {
    background: var(--accent-color);
    color: #0D0D0D;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1408 0%, #0D0D0D 70%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    width: 100%;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

/* Glitch Effect Simplified */
.hero h1::before,
.hero h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.hero h1::before {
    left: 1px;
    text-shadow: -1px 0 #D4AF37;
    clip-path: inset(45% 0 30% 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
    background: transparent;
}

.hero h1::after {
    left: -1px;
    text-shadow: 1px 0 #B8860B;
    clip-path: inset(10% 0 60% 0);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
    background: transparent;
}

@keyframes glitch-anim {
    0% {
        clip-path: inset(5% 0 95% 0);
    }

    20% {
        clip-path: inset(60% 0 5% 0);
    }

    40% {
        clip-path: inset(40% 0 40% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(15% 0 70% 0);
    }

    100% {
        clip-path: inset(10% 0 80% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(25% 0 50% 0);
    }

    20% {
        clip-path: inset(80% 0 5% 0);
    }

    40% {
        clip-path: inset(10% 0 80% 0);
    }

    60% {
        clip-path: inset(40% 0 25% 0);
    }

    80% {
        clip-path: inset(0% 0 95% 0);
    }

    100% {
        clip-path: inset(55% 0 10% 0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    margin: 0 10px;
}

.btn-primary {
    background: var(--accent-color);
    color: #0D0D0D;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Sections */
.section {
    padding: 100px 0;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-card .icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.about-card p {
    color: var(--text-secondary);
}

/* Mission & Vision */
.mv-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mv-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    padding: 30px;
    border-radius: 20px;
    border-left: 4px solid var(--accent-color);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.mv-card h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mv-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.mv-card p:last-child {
    margin-bottom: 0;
}

/* Portfolio Grid */
.portfolio-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    flex: 1 1 300px;
    max-width: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
    /* Placeholder color if img loads slow */
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: #333;
    transition: var(--transition);
}

.project-card:hover .placeholder-img {
    transform: scale(1.1);
}

.project-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.btn-sm {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-sm:hover {
    color: var(--secondary-accent);
}

/* Contact */
.contact-box {
    background: linear-gradient(135deg, var(--bg-secondary), #1a1408);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-box p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

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

.social-links a:hover {
    background: var(--accent-color);
    transform: rotate(360deg);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-item {
        margin: 16px 0;
    }

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

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

    .about-card {
        padding: 30px 20px;
    }
}

/* Mascot Styles */
.mascot-container {
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: 250px;
    height: auto;
    z-index: 9999;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
    transition: transform 0.3s ease;
}

.mascot-container:hover {
    transform: scale(1.05);
}

.mascot-img {
    width: 100%;
    height: auto;
    display: block;
}

.mascot-eyes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.eye {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    box-shadow: 0 0 5px #fff;
    transition: all 0.05s ease-out;
    /* Faster for responsiveness */
}

/* Eye pupils */
.eye::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    /* Use CSS variables for pupil movement, default to 0 */
    transform: translate(calc(-50% + var(--pupil-x, 0px)), calc(-50% + var(--pupil-y, 0px)));
    width: 4px;
    height: 4px;
    background: #000;
    border-radius: 50%;
}

/* Initial positions - will need calibration */
.eye-left {
    top: 40%;
    left: 40%;
    background: #D4AF37;
    box-shadow: 0 0 8px #D4AF37;
}

.eye-right {
    top: 40%;
    left: 60%;
    background: #D4AF37;
    box-shadow: 0 0 8px #D4AF37;
}