* {
    box-sizing: border-box;
}

:root {
    --bg-color: #f8fafc;
    --secondary-color: #3498db;
    --card-bg: #ffffff;
    --text-color: #333;
    --accent-color: #3498db;
    --border-color: #e2e8f0;
}

.dark-mode {
    --bg-color: #2c3e50;
    --card-bg: #050506;
    --text-color: #bdc3c7;
    --accent-color: #3498db;
    --border-color: #334155;
}

.dark-mode .hs-form label,
.dark-mode .hs-form .hs-form-field,
.dark-mode .hs-form p,
.dark-mode .hs-form legend {
    color: #f8fafc;
}


/* Ensure inputs are visible in Dark Mode */
.dark-mode .hs-input {
    background-color: #334155;
    border-color: #475569 ;
    color: #f8fafc;
}

/* Fix the dropdown (select) text color specifically */
.dark-mode select.hs-input option {
    background-color: #1e293b;
    color: #f8fafc;
}

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

/* Default (Light Mode) Background */
body {
    font-family: 'Segoe UI', sans-serif;
    /* Increase baseline size and ensure line-height is comfortable */
    font-size: 1.4rem; /* This is 18px */
    line-height: 1.6;
    align-content: center;
    overflow-x: hidden; /* This PREVENTS the horizontal scroll/pinch issue */
    color: var(--text-color);
    /* Soft, professional light-themed gradient */
    background: linear-gradient(-45deg, #f5f7fa, #c3cfe2, #f5f7fa, #c3cfe2);
    background-size: 200% 200%;
    animation: gradientBG 20s ease infinite;
    transition: background 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
}

/* Dark Mode Background */
body.dark-mode {
    /* Deep, tech-focused dark-themed gradient */
    background: linear-gradient(-45deg, #1a1a1a, #2c3e50, #1a1a1a, #2c3e50);
    background-size: 200% 200%;
    animation: gradientBG 20s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Action Button - Replaces the Nav for CTAs */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.floating-cta:hover { transform: scale(1.05); }

/* Vertical Card Layout */
main {
    max-width: 80%; /* Constrain the whole page width */
    margin: 2rem auto; /* Centers the whole page */
    padding: 0 1rem;
}

/* Container to hold the split */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem auto;
    width: 100%; /* Ensures it fills the 'main' container */
}

/* Make it responsive: Stack on mobile */
@media (max-width: 768px) {
    .content-grid { grid-template-columns: 1fr; }
}

/* Better list formatting */
.skills-list {
    list-style: none;
    margin-top: 1.5rem;
}

.skills-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.skills-list li span {
    font-weight: 700;
    color: var(--secondary-color);
    display: block; /* Puts label above the detail for more space */
}

/* Ensure cards don't feel scrunched */


html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Centers the card and prevents overflow */
.video-card {
    margin: 0rem auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* Forces padding to stay INSIDE the width */
    padding: 0rem; /* Tighter default padding so the video isn't squashed */
}

/* Mobile-Specific Override */
@media (max-width: 768px) {
    .video-card {
        padding: 0rem; /* Strips almost all padding on phones for max video size */
        margin: 0rem auto;
        border-radius: 0px;
    }
}

/* Forces the responsive 16:9 aspect ratio */
.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
}

/* Pins the iframe strictly to the container boundaries */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2.5rem; /* Tighter padding for desktop */
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    width: 100%; /* Important: Cards fill the grid cell, not push it */
}


.dark-mode .card {
    background: #191919e6; /* Slightly darker for dark mode */
}

/* Hero & Image */
.hero-content {
    display: flex;
    align-items: center; /* Centers image and text vertically */
    justify-content: center;
    gap: 2rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

/* Buttons */
.hero-buttons { display: flex; gap: 1rem; margin-top: 1.5rem; }

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #0077b5; /* LinkedIn brand blue */
    color: #0077b5;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background-color: #0077b5;
    color: #fff;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.primary-btn { background: var(--accent-color); color: #fff; }
.primary-btn:hover {
  background-color: #1f6391;
  border-color: #1f6391;
  transform: translateY(-2px);
}
.secondary-btn { border: 1px solid var(--border-color); color: var(--text-color); }



/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    
    /* ADD/UPDATE THESE LINES */
    width: 45px;      /* Set explicit width */
    height: 45px;     /* Set explicit height */
    display: flex;    /* Use flex to center the icon */
    align-items: center;
    justify-content: center;
    padding: 0;       /* Remove padding that might cause stretching */
    
    /* Existing Styles */
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: #25d366; /* Official WhatsApp Green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background: #128c7e;
}

/* Responsive */
@media (max-width: 600px) {
    .hero-content { 
        flex-direction: column; 
        text-align: center; 
        max-width: 100%;
    }
    
  .card, .content-grid, main {
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}  
    .hero-buttons { 
        flex-direction: column; 
        align-items: center; /* This centers the buttons horizontally */
        width: 100%;
    }
    
    .cta-btn {
        width: 100%; /* Makes buttons full-width for easier tapping on mobile */
        justify-content: center; /* Centers the icon/text inside the button */
    }
}

/* Theme Toggle: Pinned to Top Left */
.theme-toggle {
    top: 20px;
    left: 20px;
    bottom: auto; /* Remove the bottom constraint */
}

/* WhatsApp: Pinned to Bottom Left */
.floating-whatsapp {
    bottom: 20px;
    left: 20px;
    top: auto; /* Remove the top constraint */
}