:root {
    --primary: #ffffff;
    --secondary: #a5b4fc;
    --accent: #6366f1;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --bg: #0a0a0c;
    --bg-card: rgba(23, 23, 26, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: initial; /* We'll use GSAP for smooth scrolling */
    background: var(--bg);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

.noise-overlay {
    position: fixed;
    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;
    z-index: 9999;
}

.bg-portrait {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('assets/portrait.jpg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    filter: grayscale(100%) contrast(110%) brightness(40%);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.1s ease-out;
}

.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
}

.custom-cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1.5rem 0;
}

/* Logo Styles */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary);
    group: hover;
}

.logo-mark {
    width: 32px;
    height: 32px;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-mark svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.logo-path-m {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s ease;
}

.logo-circle {
    opacity: 0.8;
    stroke-width: 2.5;
    transform-origin: center;
    animation: rotate 10s linear infinite;
    filter: drop-shadow(0 0 2px var(--accent));
}

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

.logo-wrapper:hover .logo-mark {
    transform: scale(1.1) rotate(5deg);
}

.logo-wrapper:hover .logo-path-m {
    stroke: var(--accent);
}

.logo-text {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--primary);
    transition: all 0.4s ease;
}

.logo-wrapper:hover .logo-text {
    letter-spacing: 0.4em;
    color: var(--secondary);
}

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

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

.nav-link-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link-item:hover {
    color: var(--primary);
}

/* Global Refinements */
::selection {
    background: var(--accent);
    color: var(--primary);
}

body {
    background-color: var(--bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(165, 180, 252, 0.05) 0px, transparent 50%);
}

/* Nav Link Hover Effect */
.nav-link-item {
    position: relative;
}

.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link-item:hover::after {
    width: 100%;
}

/* Featured Card Enhancements */
.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.featured-card:hover::before {
    opacity: 1;
}

.card-link span {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-link:hover span {
    transform: translateX(5px);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Stats Enhancement */
.stat {
    position: relative;
}

.stat::after {
    content: '';
    position: absolute;
    top: 0;
    right: -2rem;
    height: 100%;
    width: 1px;
    background: var(--border);
}

.stat:last-child::after {
    display: none;
}

.stat-prefix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-right: 0.1rem;
    vertical-align: super;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Plus Jakarta Sans';
    display: inline-block;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-left: 0.25rem;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px; /* Offset for fixed nav */
    padding-bottom: 80px;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1;
    max-width: 1200px;
    text-wrap: balance;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 800px;
    line-height: 1.6;
}

.btn {
    padding: 1.2rem 2.8rem;
    border-radius: 4px; /* More architectural, less "bubbly" */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(255,255,255,0.05);
    transform: translateY(-5px);
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    margin-bottom: 6rem;
}

/* Trusted By Marquee */
.trusted-by {
    width: 100%;
    margin-bottom: 6rem;
    overflow: hidden;
    position: relative;
}

.trusted-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    opacity: 0.6;
}

.logo-marquee {
    width: 100%;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    padding: 1rem 0;
}

.client-logo {
    font-family: 'Plus Jakarta Sans';
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0.4;
    transition: all 0.4s ease;
    cursor: default;
    letter-spacing: -0.02em;
}

.client-logo:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Typography Scale */
h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Footer Style for Contact Section */
#contact .featured-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(165, 180, 252, 0.05));
    border-color: var(--glass-border);
}

#contact h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

/* removed centering to restore original left-aligned layout */

/* Responsive Fixes */
@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }

    .custom-cursor,
    .custom-cursor-outline {
        display: none;
    }
    .container {
        padding: 0 1.5rem;
    }

    .nav {
        padding: 1rem 0;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 7rem;
        padding-bottom: 4rem;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.1;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        margin-bottom: 4rem;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }

    .stat::after {
        display: none;
    }

    .overview {
        padding: 6rem 0;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .overview-card {
        padding: 2.25rem;
    }

    .featured {
        padding: 6rem 0;
    }

    .featured h2 {
        font-size: 2.25rem;
        margin-bottom: 3rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-card {
        padding: 2.75rem;
    }

    .philosophy {
        padding: 8rem 0;
    }

    .philosophy blockquote {
        font-size: 1.75rem;
    }

    .about {
        padding: 6rem 0;
    }

    .timeline {
        margin: 3rem 0;
    }

    .timeline-item {
        padding-left: 2.5rem;
        margin-bottom: 3.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero {
        padding-top: 6.5rem;
    }

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

    h2 {
        font-size: 2rem;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }
}

/* Overview Section */
.overview {
    padding: 10rem 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.overview-card {
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.overview-card:hover {
    border-color: var(--secondary);
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.overview-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.overview-card ul {
    list-style: none;
}

.overview-card li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.overview-card li:last-child {
    border-bottom: none;
}

/* Featured Section */
.featured {
    padding: 10rem 0;
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.03), transparent);
}

.featured h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
}

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

.featured-card {
    position: relative;
    padding: 4rem;
    background: var(--bg-card);
    border-radius: 32px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.featured-card:hover {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.04);
}

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

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

.featured-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    max-width: 90%;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Philosophy Section */
.philosophy {
    padding: 12rem 0;
    text-align: center;
}

.philosophy blockquote {
    font-size: 2.5rem;
    font-family: 'Plus Jakarta Sans';
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 3rem;
    color: var(--primary);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    padding: 10rem 0;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    max-width: 800px;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 6rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 9px;
    height: 9px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent);
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.timeline-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

/* Skills */
.skills {
    margin-top: 6rem;
}

.skills h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.skill-category h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.skill-category li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Work Section */
.work {
    padding: 6rem 0;
    background: var(--bg-light);
}

.work h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 4rem;
    text-align: center;
}

.project {
    background: var(--bg);
    padding: 3rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

.project h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.project-intro {
    font-size: 1.25rem;
    color: var(--text-light);
    margin: 1.5rem 0;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-section h4 {
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.detail-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.detail-section ul {
    list-style: none;
}

.detail-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.detail-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Impact Section */
.impact {
    padding: 6rem 0;
    background: var(--bg);
}

.impact h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 4rem;
    text-align: center;
}

.impact-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.impact-stat {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.impact-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.impact-label {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.impact-category {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

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

.impact-category ul {
    list-style: none;
}

.impact-category li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.impact-category li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.testimonial {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
    padding: 3rem;
    background: var(--primary);
    color: white;
    border-radius: 0.75rem;
}

.testimonial blockquote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial cite {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-light);
}

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

.contact-intro {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    padding: 2rem;
    background: var(--bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    text-align: center;
}

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

.contact-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-info {
    text-align: center;
    padding: 2rem;
    background: var(--bg);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.contact-info p {
    margin: 0.5rem 0;
    color: var(--text-light);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--primary);
    color: white;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container { padding: 0 2rem; }
    .overview-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
    .philosophy blockquote { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

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

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

    .stat-number {
        font-size: 2rem;
    }
}
