:root {
    --bg-dark: #ffffff; /* Pure White Background */
    --bg-card: rgba(245, 245, 245, 0.6); /* Soft Grey Glass */
    --text-primary: #000000; /* Solid Black */
    --text-secondary: #555555; /* Medium Grey */
    --accent-1: #000000; /* Black Accent */
    --accent-2: #333333; /* Dark Grey Accent */
    --accent-3: #888888; /* Medium Grey Accent */
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* Background Aesthetics */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    z-index: -1;
}

/* Glassmorphism Components */
.bg-glass-grey-1 { background: rgba(0, 0, 0, 0.03); }
.bg-glass-grey-2 { background: rgba(0, 0, 0, 0.05); }
.bg-glass-grey-3 { background: rgba(0, 0, 0, 0.07); }
.bg-glass-grey-4 { background: rgba(0, 0, 0, 0.09); }

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s, height 0.3s, background 0.3s;
}

body:hover .cursor-follower.hover {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-1);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.gradient-text {
    color: var(--text-primary);
    font-weight: 800;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.3); /* Lighter Glass always */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: borderGlitch 3s infinite;
    opacity: 0.5;
}

@keyframes borderGlitch {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-fast);
    cursor: none; /* Let custom cursor handle it */
}

.primary-btn {
    background: rgba(0, 0, 0, 0.5); /* Dark Glass Button */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff; /* High Contrast White Text */
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Noise Texture for Glass Buttons */
.primary-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    border-color: var(--accent-1);
    background: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-1);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Abstract Visuals */
.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-1);
    top: 20%;
    right: 20%;
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-2);
    bottom: 20%;
    left: 20%;
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.main-card {
    width: 320px;
    height: 420px;
    display: flex;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid var(--glass-border);
}

.card-content h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: var(--transition-slow);
}

.expertise-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--accent-1);
    box-shadow: var(--glass-shadow);
}

.expertise-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.expertise-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: var(--transition-slow);
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--accent-1);
    box-shadow: var(--glass-shadow);
}

.project-image-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.gradient-1 { background: linear-gradient(135deg, #2c3e50, #3498db); }
.gradient-2 { background: linear-gradient(135deg, #8e44ad, #c0392b); }
.gradient-3 { background: linear-gradient(135deg, #16a085, #f39c12); }

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-link {
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-2);
}

/* Services */
.services-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.services-content, .services-visual {
    flex: 1;
}

.services-list {
    list-style: none;
    margin-top: 2rem;
}

.services-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.services-list li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.services-visual {
    display: flex;
    justify-content: center;
}

.glow-orb {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, rgba(10,10,15,0) 70%);
    border-radius: 50%;
    position: relative;
}

.glow-orb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    border-radius: 50%;
    filter: blur(20px);
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); filter: blur(20px); }
    100% { transform: translate(-50%, -50%) scale(1.1); filter: blur(30px); }
}

/* Contact Section */
.contact-card {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 4rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: var(--accent-1);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.submit-btn {
    cursor: none;
    width: fit-content;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 900px) {
    .section-padding { padding: 5rem 0; } /* Tighter spacing for mobile */
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 5rem;
    }
    .hero-content {
        margin-bottom: 3rem;
    }
    .cta-group {
        justify-content: center;
    }
    .title {
        font-size: 2.8rem;
    }
    .services-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    .contact-card {
        padding: 2.5rem 1.5rem;
    }

    /* Mobile Nav */
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2.2rem;
    }
    .cursor, .cursor-follower {
        display: none; /* Disable custom cursor on mobile */
    }
    body {
        cursor: auto;
    }
    .container { padding: 0 1.5rem; }
}

/* Category Filter Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.cat-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(5px);
}

.cat-tab:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    background: white;
}

.cat-tab.active {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.cat-tab.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    mix-blend-mode: overlay;
    border-radius: 50px;
}

/* Projects loading text */
.projects-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 0;
    font-size: 1rem;
}
