/* Color Variables & Reset */
:root {
    --bg-dark: #F8FAFC; /* Light background */
    --surface-dark: #FFFFFF; /* White cards */
    --surface-light: #F1F5F9;
    --electric-indigo: #4F46E5; /* Deep Indigo for light theme */
    --neon-cyan: #0284C7; /* Sky blue for light theme */
    --neon-glow: 0 4px 15px rgba(2, 132, 199, 0.2);
    
    --text-primary: #0F172A; /* Dark text */
    --text-secondary: #475569;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

.text-neon {
    color: var(--neon-cyan);
    text-shadow: var(--neon-glow);
}

.w-100 {
    width: 100%;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.massive-text {
    font-size: 4.5rem;
    font-weight: 700;
}

/* Animated Mesh Background */
.mesh-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: pulse 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.mesh-1 {
    width: 600px; height: 600px;
    background: var(--electric-indigo);
    top: -100px; left: -100px;
}

.mesh-2 {
    width: 500px; height: 500px;
    background: var(--neon-cyan);
    bottom: -50px; right: -50px;
    animation-delay: -5s;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(50px, -50px); }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--neon-cyan);
    text-shadow: var(--neon-glow);
}

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

.social-links a {
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--electric-indigo);
}

.nav-cta {
    border: 1px solid rgba(79, 70, 229, 0.4);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: var(--electric-indigo);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--electric-indigo);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--electric-indigo);
    color: white;
    text-decoration: none;
    padding: 1.05rem 2rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.35);
    background: #5255d6;
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    text-decoration: none;
    padding: 1.05rem 1.8rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.98rem;
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--electric-indigo);
    color: var(--electric-indigo);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Hero Section */
.hero {
    padding: 4.5rem 0 6.5rem;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

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

.hero-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 95%;
    line-height: 1.65;
}

.tech-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    background: var(--surface-dark);
    padding: 10px;
}

.hero-img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.scanline {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 51%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
}

/* Bento Box Section */
.bento-section {
    padding: 8rem 0;
}

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

.bento-item {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.bento-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.bento-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.bento-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.bento-item:hover .bento-img-wrapper img {
    transform: scale(1.06);
}

.bento-content {
    padding: 1.6rem 1.4rem;
    text-align: left;
}

.bento-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--electric-indigo);
    margin: 0 0 0.5rem 0;
}

.bento-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Executive Credential Pills */
.executive-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.8rem 0 1.5rem 0;
}

.exec-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: rgba(99, 102, 241, 0.07);
    color: var(--electric-indigo);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Profile / Video Section */
.profile-section {
    padding: 8rem 0;
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.tech-video-wrapper {
    background: var(--surface-dark);
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: black;
}

.video-frame iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.profile-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--surface-light);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--electric-indigo);
}

.profile-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.profile-title {
    color: var(--electric-indigo);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-text p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Media Carousel */
.media-section {
    padding: 6rem 0;
    background: var(--surface-light);
    overflow: hidden;
}

.media-carousel-wrapper {
    margin-top: 3rem;
    width: 100%;
}

.media-grid.carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Carousel */
.media-grid.carousel::-webkit-scrollbar {
    height: 10px;
}
.media-grid.carousel::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}
.media-grid.carousel::-webkit-scrollbar-thumb {
    background: var(--electric-indigo);
    border-radius: 10px;
}
.media-grid.carousel::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

.media-card {
    min-width: 350px;
    max-width: 350px;
    width: 350px;
    scroll-snap-align: start;
    flex-shrink: 0;
    background: transparent;
    border: none;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: #475569;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.carousel-btn:hover {
    background: #334155;
    color: white;
    transform: translateY(-50%) scale(1.05);
}
.prev-btn {
    left: 10px;
}
.next-btn {
    right: 10px;
}

@media (max-width: 850px) {
    .media-card {
        min-width: 300px;
        max-width: 300px;
        width: 300px;
    }
}
@media (max-width: 600px) {
    .media-card {
        min-width: 100%;
    }
    .carousel-btn {
        display: none;
    }
}

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

.media-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.media-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-info {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-tag {
    display: none;
}

.media-info h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.media-info p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
    text-decoration: underline;
    text-decoration-color: rgba(0,0,0,0.2);
}

/* Connect Section (Cyber Form) */
.connect-section {
    padding: 8rem 0 4rem;
}

.connect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.connect-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.tech-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    transition: color 0.3s;
}

.tech-link i {
    color: var(--neon-cyan);
    font-size: 1.5rem;
}

.tech-link:hover {
    color: var(--neon-cyan);
}

.connect-form-wrapper {
    background: var(--surface-dark);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.connect-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--electric-indigo), var(--neon-cyan));
}

.form-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 1rem;
}

.form-header h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header i {
    color: #10b981; /* Green connection signal */
}

.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 1.2rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
    background: var(--surface-dark);
    padding: 0 0.5rem;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: var(--electric-indigo);
    outline: none;
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.1);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.8rem;
    color: var(--neon-cyan);
}

/* Marquee Section */
.marquee-section {
    padding: 2rem 0 4rem;
    overflow: hidden;
}

.marquee {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.marquee::before, .marquee::after {
    content: '';
    position: absolute;
    top: 0; width: 150px; height: 100%;
    z-index: 2;
}

.marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.marquee-content img {
    height: 60px;
    width: auto;
    margin: 0 4rem;
    vertical-align: middle;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-content img:hover {
    opacity: 1;
    transform: scale(1.05);
}

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

/* Footer */
.footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 4rem 0 2rem;
    background: var(--bg-dark); /* or surface-dark, light theme */
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}

.footer-brand h2 {
    color: var(--electric-indigo);
    margin-bottom: 1rem;
}

.footer-brand .brand-logo {
    height: 85px;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-contact {
    color: var(--text-primary);
    font-weight: 500;
}

.footer-contact a {
    color: var(--electric-indigo);
    text-decoration: none;
    font-weight: 600;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    background: var(--surface-dark);
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    color: white;
    background: var(--electric-indigo);
    transform: translateY(-3px);
}

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

/* Animations (Scroll reveal) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.right {
    transform: translateX(40px);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container, .profile-container, .connect-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .hero-title, .massive-text { font-size: 3.5rem; }
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(300px, auto);
    }
    .bento-large { grid-column: span 1; }
    .media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 4rem 0 6rem; }
    .hero-title, .massive-text { font-size: 2.8rem; }
    .media-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .mesh-blob { display: none; } /* Better perf on mobile */
}
