/* Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors */
    --primary-color: #2b8fd1;
    --primary-dark: #2b3cd1;
    --secondary-color: #2bd1c0;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.1);
    /* --highlight-color: #2bd1c0; */
    --highlight-color: #2b8fd1;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --bg-dark: #030712;
        --border-color: #374151;
    }
}

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.terminal-loader {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 1.2rem;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-medium);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition-fast);
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition-fast);
    border-radius: 2px;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */

/* Make the video hero a real sized container */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  padding: 0;          /* overrides your global section padding for this section */
  overflow: hidden;    /* prevents any video overflow from showing */
}

/* Make the video always cover the hero box */
#videobcg {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  height: auto;
  width: auto;
  z-index: -100;
}

/* Make the overlay always match the hero box */
#hero .overlay {
    position: absolute;  /* Change from relative to absolute */
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}





.greeting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.wave {
    animation: wave 2s infinite;
    transform-origin: 70% 70%;
    font-size: 1.5rem;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(14deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}



.name-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 2.5rem;
    font-weight: 500;
}

.typing-text {
    color: var(--primary-color);
    font-weight: 700;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 100%;
    line-height: 1.7;
}

.highlight {
    color: var(--highlight-color);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-medium);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: var(--transition-medium);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Code Window */
.hero-visual {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-top: 2rem;
}


/* Make code window always use the same dark style so it shows */
.code-window {
    background: #091121 !important;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 25px rgba(0,0,0,0.18);
    max-width: 800px;
    width: 100%;
    animation: float 6s ease-in-out infinite;
}

.code-window .window-header {
    background: #0c2438 !important;
}
.code-window .window-title {
    color: #a0aec0 !important;
}
.code-window .code-content {
    color: #ffcea5 !important;
    background: transparent !important;
}
.code-window .code-content .keyword { color: #ff79c6 !important; }
.code-window .code-content .class-name { color: #8be9fd !important; }
.code-window .code-content .function { color: #50fa7b !important; }
.code-window .code-content .string { color: #a5d7ff !important; }

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

.window-header {
    background: #2d3748;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.window-title {
    color: #a0aec0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.code-content {
    padding: 1.5rem 10rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-content .keyword { color: #ff79c6; }
.code-content .class-name { color: #8be9fd; }
.code-content .function { color: #50fa7b; }
.code-content .string { color: #f1fa8c; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    color: var(--text-light);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}

.about-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
}

.highlight-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.highlight-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Skills Section */
.skills-content {
    display: grid;
    gap: 4rem;
}

.skills-category h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.skills-category i {
    color: var(--primary-color);
    font-size: 2rem;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    width: 60px;
    text-align: center;
}

.skill-info {
    flex: 1;
}

.skill-name {
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1.1rem;
}

.skill-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    width: 0;
    transition: width 1s ease;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.tech-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.tech-item span {
    font-weight: 600;
    font-size: 1rem;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    position: relative;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-card.featured .project-image {
    height: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 1.2rem;
}

.project-link:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.project-content {
    padding: 2.5rem;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 700;
}

.project-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
}

.featured-badge {
    background: var(--secondary-color);
    color: white;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-stats {
    display: flex;
    gap: 1.5rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat i {
    color: var(--secondary-color);
}

.projects-cta {
    text-align: center;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    color: var(--text-light);
    transition: var(--transition-fast);
    pointer-events: none;
    font-weight: 500;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: var(--bg-primary);
    padding: 0 0.5rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 2.5rem 0;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 1001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: var(--transition-medium);
}

.theme-toggle i {
    font-size: 1.45rem !important;
    color: var(--primary-color);
    pointer-events: none;
    transition: font-size 0.2s;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}



/* Ensure icon color is always visible on hover */
.theme-toggle:hover i {
    color: #fff !important;
}


/* Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
        background: var(--bg-primary);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        padding: 1rem 0;
        display: none;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-toggle {
        display: flex;
        position: absolute;
        right: 2rem;
        top: 1.5rem;
        z-index: 1100;
    }
    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 4rem;
    }
    .hero-visual {
        justify-content: flex-end;
        align-items: flex-start;
    }
    .profile-image {
        width: 120px;
        height: 120px;
        margin: 0;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-highlights {
        grid-template-columns: 1fr;
    }
    .project-card.featured {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .hero-title, .section-title {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .btn {
        width: 100%;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 2rem;
        max-width: 100vw;
    }
    .hero-visual {
        justify-content: flex-end;
        align-items: flex-start;
    }
    .profile-image {
        width: 120px;
        height: 120px;
        margin: 0;
    }
    .code-window {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
    .project-card.featured {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 100vw;
    }
    .project-card.featured .project-image,
    .project-card.featured .project-content {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .projects-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 100vw;
    }
    body, html, .container, .hero-container {
        max-width: 100vw;
        overflow-x: auto;
    }
    /* Allow horizontal scroll for desktop layout on mobile */
    .hero-content, .projects-grid, .project-card.featured {
        min-width: 700px;
        width: 100vw;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

[data-theme="light"] {
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #f3f4f6;
    --border-color: #e5e7eb;
}

[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-dark: #030712;
    --border-color: #374151;
}

[data-theme="light"] .navbar {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
[data-theme="dark"] .navbar {
    background: var(--bg-dark);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

[data-theme="light"] .nav-link {
    color: var(--text-primary);
}
[data-theme="dark"] .nav-link {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-link.active {
    color: var(--primary-color);
}
[data-theme="dark"] .nav-link.active {
    color: var(--secondary-color);
}









#videobcg {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    height:auto;
    width:auto;
    z-index: -100;
}


/* Blue overlay on top of video, behind text */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 169, 244, 0.3);
    z-index: 1;
    pointer-events: none;
}


.hero-bg-box  {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 1;
	pointer-events: none;
}



/* Update hero-container z-index to be above overlay */
.hero-container {
	position: relative;
	z-index: 2;
}


/* Semi-transparent grey background box in hero */
/* Semi-transparent grey background box in hero */
/*
.hero-bg-box {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 85%;
	max-width: 1200px;
	height: 800px;
	background: rgba(0, 0, 0, 0.75);  /* Semi-transparent grey * /
	border-radius: 30px;
	z-index: 1.5;  /* Above overlay (1), below content (2) * /
	pointer-events: none;
}
*/


.center-text { text-align: center; }






/* Theme Switch Styling */
.theme-switch-wrapper {
	display: flex;
	align-items: center;
	margin-left: auto;
	padding: 0 1rem;
}

.theme-checkbox {
	display: none;
}

.theme-label {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 30px;
	background: var(--border-color);
	border-radius: 20px;
	cursor: pointer;
	transition: var(--transition-fast);
	position: relative;
	padding: 0;
	margin: 0;
}

.theme-label i {
	position: absolute;
	font-size: 0.9rem !important;
	color: white;
	transition: var(--transition-fast);
	pointer-events: none;
}

/* Moon icon (default, light mode off) */
.theme-label i {
	left: 8px;
	opacity: 1;
	color: #fff;
}

/* When checked (dark mode on) */
.theme-checkbox:checked + .theme-label {
	background: var(--primary-color);
}

.theme-checkbox:checked + .theme-label i {
	left: 24px;
}

/* Hover effect */
.theme-label:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Mobile responsive */
@media (max-width: 768px) {
	.theme-switch-wrapper {
		margin-left: 1rem;
		padding: 0;
	}
	
	.theme-label {
		width: 45px;
		height: 28px;
	}
	
	.theme-label i {
		font-size: 0.8rem !important;
	}
}



/* Hide the old floating button */
.theme-toggle {
	display: none !important;
}



a {
	color: #2b8fd1;
	text-decoration: none;
	transition: var(--transition-fast);
}

a:hover {
	color: #2bd1c0;
	text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 2.5rem 0;
    position: relative;
    z-index: 100;
    margin-top: auto;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-color);
}




/* Keep the video strictly inside the video section (prevents it from appearing behind footer) */
/* Ensure the video section is the “hero” container */
#video-bg {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: 0;
}

/* Video: bottom layer */
#video-bg #videobcg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlays: middle layer */
#video-bg .overlay,
#video-bg .hero-bg-box {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Text: top layer, centered */
#video-bg .hero-container {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Optional: keep text from sitting under the fixed navbar (80px high) */
  padding-top: 80px;
  box-sizing: border-box;
}


/*
.name-highlight::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-secondary);
    margin: 1.5rem 0;
}
*/




/* Reusable Horizontal Line Divider */
.divider-line {
    width: 100%;
    height: 2px;
    background-color: var(--text-secondary);
    margin: 1.5rem 0;
    border: none;
    display: block;
}

.divider-line.centered {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.divider-line.thick {
    height: 3.4px;
}

.divider-line.thin {
    height: 1px;
}

.divider-line.primary {
    background-color: var(--primary-color);
}

.divider-line.secondary {
    background-color: var(--secondary-color);
}

.divider-line.accent {
    background-color: var(--accent-color);
}
