:root {
    /* Color Palette */
    --bg-color: #F8FAFC;
    --text-main: #0F172A;
    --text-muted: #475569;
    --accent-1: #2563EB;
    --accent-2: #3B82F6;
    --accent-3: #60A5FA;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --surface-glass: rgba(255, 255, 255, 0.7);
    --surface-border: rgba(148, 163, 184, 0.2);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing & Utilities */
    --section-pad: 8rem 2rem;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default for custom cursor */
}

/* Base Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.section-padding {
    padding: var(--section-pad);
}

/* Background Gradients */
.bg-gradient {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate;
}

.bg-gradient-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.bg-gradient-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 100px) scale(1.2);
    }
}

/* Custom Cursor */
.custom-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: width 0.3s, height 0.3s, background 0.3s;
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(37, 99, 235, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s, transform 0.1s ease-out;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--surface-border);
}

.btn-outline:hover {
    background: var(--surface-glass);
    border-color: var(--accent-1);
    color: var(--accent-1);
}

/* Typography Utilities */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 4rem;
}

.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    border-radius: 8px;
    /* Assuming logo needs standard bordering */
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: rgba(15, 23, 42, 0.8);
    transition: color 0.3s;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-1);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: none;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 3rem;
    z-index: 99;
}

.nav-links.active a:not(.btn) {
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.line-wrap {
    overflow: hidden;
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 90%;
}

.hero-btn-group {
    display: flex;
    gap: 1rem;
}

/* 3D Visual in Hero - Orbiting Profile */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    perspective: 1000px;
    z-index: 5;
}

.orbit-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container {
    position: absolute;
    width: clamp(200px, 20vw, 300px);
    aspect-ratio: 1;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
}

.profile-image {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.5));
    border: 3px solid rgba(37, 99, 235, 0.1);
    box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.3);
}

.orbit-track {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
}

.track-1 {
    width: clamp(280px, 28vw, 420px);
    aspect-ratio: 1;
    border-color: rgba(37, 99, 235, 0.2);
    animation: orbit-spin 30s linear infinite;
}

.track-2 {
    width: clamp(400px, 40vw, 550px);
    aspect-ratio: 1;
    border-color: rgba(59, 130, 246, 0.2);
    animation: orbit-spin-reverse 45s linear infinite;
}

.track-3 {
    width: clamp(520px, 52vw, 700px);
    aspect-ratio: 1;
    border-color: rgba(96, 165, 250, 0.2);
    animation: orbit-spin 60s linear infinite;
}

@keyframes orbit-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes orbit-spin-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.orbit-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: rotate(var(--angle));
}

.orbit-payload {
    position: absolute;
    top: -15px;
    left: calc(50% - 35px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-heading);
    white-space: nowrap;
    transform-origin: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.orbit-payload:hover {
    background: var(--text-main);
    color: #fff;
    transform: scale(1.1);
}

.track-1 .orbit-payload {
    animation: counter-spin 30s linear infinite;
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--accent-1);
}

.track-2 .orbit-payload {
    animation: counter-spin-reverse 45s linear infinite;
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--accent-2);
}

.track-3 .orbit-payload {
    animation: counter-spin 60s linear infinite;
    border-color: rgba(96, 165, 250, 0.4);
    color: var(--accent-3);
}

@keyframes counter-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes counter-spin-reverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Capabilities (Expertise) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.5), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-img-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Showcases (Projects) */
.project-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 10rem;
}

.project-row.reversed {
    grid-template-columns: 1.2fr 1fr;
}

.project-row.reversed .project-info {
    order: 2;
}

.project-row.reversed .project-visual {
    order: 1;
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--accent-1);
    color: var(--accent-1);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1.5rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.project-features {
    list-style: none;
}

.project-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.project-features li::before {
    content: '→';
    color: var(--accent-2);
    font-family: monospace;
}

.project-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.canvas-container {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
}

.project-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    transition: background 0.4s;
}

.badge {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-main);
}

.badge-google {
    border-color: rgba(66, 133, 244, 0.5);
    color: #4285F4;
}

.badge-nano {
    border-color: rgba(179, 84, 255, 0.5);
    color: var(--accent-2);
}

.play-btn {
    align-self: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin: auto;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--accent-1);
    margin-left: 5px;
}

.project-visual:hover .video-placeholder img,
.project-visual:hover .video-placeholder video {
    transform: scale(1.05);
}

.project-visual:hover .video-overlay {
    background: rgba(255, 255, 255, 0.2);
}

.project-visual:hover .play-btn {
    transform: scale(1.1);
    background: var(--text-main);
    border-color: var(--text-main);
}

.project-visual:hover .play-btn::after {
    border-left-color: var(--bg-color);
}

.glass-layer {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    pointer-events: none;
    z-index: 3;
}

/* Contact Section & Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--surface-border);
}

.contact-info {
    padding: 4rem;
    background: rgba(248, 250, 252, 0.8);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid var(--surface-border);
}

.detail-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.detail-link {
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.detail-link:hover {
    color: var(--accent-1);
}

.contact-form-container {
    padding: 4rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #e8f0fe;
    /* Light blue background */
    border: 1px solid rgba(37, 99, 235, 0.2);
    /* Light blue border */
    border-radius: 12px;
    color: var(--text-main) !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Dark text color for visibility */
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
    /* Visible placeholder color matching the light theme */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.w-100 {
    width: 100%;
}

/* Footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 4rem 2rem 2rem;
    background: #020202;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 30px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 3rem;
    }

    .hero-btn-group {
        justify-content: center;
    }

    .project-row,
    .project-row.reversed,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .project-row.reversed .project-info {
        order: 1;
    }

    .project-row.reversed .project-visual {
        order: 2;
    }

    .contact-info,
    .contact-form-container {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-visual {
        transform: scale(0.5);
        margin: 2rem 0 4rem;
    }
}