/* ==========================================================================
   CSS Styling: Vashu Sangwan Portfolio
   Colors: Dark futuristic space theme (slate background, deep violets, neon cyan)
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --bg-main: hsl(222, 47%, 6%);
    --bg-card: hsla(223, 47%, 11%, 0.7);
    --bg-card-hover: hsla(223, 47%, 16%, 0.8);
    --border-color: hsla(223, 47%, 20%, 0.4);
    --border-hover: hsla(180, 100%, 50%, 0.4);
    
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 75%);
    --text-muted: hsl(215, 15%, 55%);
    
    --color-cyan: hsl(180, 100%, 50%);
    --color-purple: hsl(270, 95%, 65%);
    --color-blue: hsl(210, 100%, 55%);
    --color-yellow: hsl(45, 100%, 50%);
    --color-orange: hsl(20, 100%, 55%);
    --color-green: hsl(145, 80%, 50%);

    --grad-primary: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
    --grad-blue-purple: linear-gradient(135deg, var(--color-blue) 0%, var(--color-purple) 100%);
    
    --ff-heading: 'Outfit', sans-serif;
    --ff-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--ff-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Background Grids & Glows */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -3;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--color-cyan);
    top: -200px;
    right: -100px;
    animation: floatGlow1 20s infinite alternate ease-in-out;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--color-purple);
    bottom: -150px;
    left: -100px;
    animation: floatGlow2 15s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); background: var(--color-cyan); opacity: 0.12; }
    50% { transform: translate(-100px, 80px) scale(1.25); background: var(--color-blue); opacity: 0.22; }
    100% { transform: translate(-50px, 150px) scale(1); background: var(--color-purple); opacity: 0.12; }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); background: var(--color-purple); opacity: 0.12; }
    50% { transform: translate(120px, -80px) scale(0.85); background: var(--color-cyan); opacity: 0.22; }
    100% { transform: translate(60px, -150px) scale(1.1); background: var(--color-blue); opacity: 0.12; }
}

/* Text & Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--ff-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-cyan { color: var(--color-cyan) !important; }
.text-purple { color: var(--color-purple) !important; }
.text-blue { color: var(--color-blue) !important; }
.text-yellow { color: var(--color-yellow) !important; }
.text-orange { color: var(--color-orange) !important; }
.text-green { color: var(--color-green) !important; }

/* Reusable Glassmorphism Cards */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.card-glass:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    font-family: var(--ff-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--bg-main);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.4);
}

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

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

.btn-block {
    display: flex;
    width: 100%;
}

/* Badge & Dots */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 255, 0.1);
    color: var(--color-cyan);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 10, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--ff-heading);
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition-fast);
}

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

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
}

.nav-btn:hover {
    background: var(--grad-primary);
    color: var(--bg-main) !important;
    border-color: transparent;
}

.nav-btn::after {
    display: none;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10rem 2rem 5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    min-height: 95vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

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

/* Floating Visual Elements */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.visual-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(13, 20, 35, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    width: 240px;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.floating-card i {
    font-size: 1.5rem;
}

.floating-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.floating-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.web-card {
    top: -10px;
    left: -60px;
    animation: floatCard 6s infinite ease-in-out;
}

.ai-card {
    bottom: -10px;
    right: -60px;
    animation: floatCard 6s infinite ease-in-out 2s;
}

.meta-card {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatCard 6s infinite ease-in-out 4s;
    z-index: 11;
}

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

/* central hologram sphere */
.tech-sphere {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50px;
    left: 50px;
    border-radius: 50%;
    z-index: 1;
}

.core-glow {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background: var(--grad-primary);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.6;
    animation: pulseGlow 4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

.orbit {
    position: absolute;
    border: 1.5px dashed rgba(0, 255, 255, 0.2);
    border-radius: 50%;
}

.orbit-1 {
    width: 100%;
    height: 100%;
    animation: rotate 15s linear infinite;
}

.orbit-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: rgba(168, 85, 247, 0.3);
    animation: rotate 10s linear infinite reverse;
}

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

/* Stats Section */
.stats-section {
    max-width: 1200px;
    margin: 0 auto 8rem;
    padding: 0 2rem;
}

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

.stat-card {
    background: rgba(13, 20, 35, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(13, 20, 35, 0.6);
}

.stat-number {
    font-size: 3rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Sections Commons */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tagline {
    font-family: var(--ff-heading);
    color: var(--color-cyan);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--grad-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* About & Journey Section */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.about-info p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.education-badge {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.education-badge i {
    font-size: 2rem;
    color: var(--color-cyan);
}

.education-badge h4 {
    font-size: 1.1rem;
}

.education-badge p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Timeline */
.timeline h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-cyan);
    background: rgba(0, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.timeline-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 30px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
}

/* Services Section */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

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

.service-card {
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.service-icon i {
    font-size: 1.75rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card:hover .service-icon {
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.service-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.service-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    color: var(--color-cyan);
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-top: auto;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.service-features li i {
    color: var(--color-cyan);
}

/* Skills Section */
.skills-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.skills-container {
    padding: 3rem;
}

.skills-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.skill-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.skill-tab-btn:hover, .skill-tab-btn.active {
    background: var(--grad-primary);
    color: var(--bg-main);
    border-color: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: var(--transition-smooth);
}

.skill-item:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.03);
}

.skill-icon {
    font-size: 1.75rem;
}

.skill-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Interactive Calculator */
.calculator-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    padding: 3rem;
    align-items: center;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.input-group label {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.input-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-cyan);
    transition: var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-val {
    min-width: 80px;
    text-align: right;
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-cyan);
}

.calc-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(6, 10, 18, 0.4);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
}

.result-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.result-box:last-of-type {
    border-bottom: none;
}

.result-box p {
    font-size: 0.9rem;
    font-weight: 500;
}

.result-box h3 {
    font-size: 1.5rem;
}

.result-box.highlighted {
    background: rgba(0, 255, 255, 0.05);
    border: 1px dashed var(--color-cyan);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.result-box.highlighted h3 {
    color: var(--color-cyan);
}

/* Contact Section */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
}

.contact-info h3, .contact-action h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact-info h1 {
    font-size: 2rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.contact-info h2 {
    font-size: 1.25rem;
    color: var(--color-cyan);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.contact-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.contact-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon i {
    font-size: 1.25rem;
    color: var(--color-cyan);
}

.detail-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.detail-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

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

/* Custom form elements */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.custom-form input, .custom-form select, .custom-form textarea {
    background: rgba(6, 10, 18, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    font-family: var(--ff-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.custom-form input:focus, .custom-form select:focus, .custom-form textarea:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

/* Footer styling */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(6, 10, 18, 0.8);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    font-size: 0.95rem;
}

.footer-subtext {
    font-size: 0.8rem !important;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Scroll reveal helper class */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.hero-content .fade-in:nth-child(1) { animation-delay: 0.1s; }
.hero-content .fade-in:nth-child(2) { animation-delay: 0.3s; }
.hero-content .fade-in:nth-child(3) { animation-delay: 0.5s; }
.hero-content .fade-in:nth-child(4) { animation-delay: 0.7s; }
.hero-visual.fade-in { animation-delay: 0.9s; }

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


/* Blog Section & Cards */
.blog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.blog-date {
    color: var(--text-muted);
}

.blog-card h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.blog-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.blog-card h3 a:hover {
    color: var(--color-cyan);
}

.blog-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-cyan);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.blog-readmore:hover {
    gap: 0.75rem;
}

.blog-more-btn {
    text-align: center;
}

/* For Single Blog Pages */
.blog-post-container {
    max-width: 800px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
}

.blog-post-header {
    margin-bottom: 3rem;
}

.blog-post-header h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content strong {
    color: var(--text-primary);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: var(--transition-fast);
}

.back-btn:hover {
    color: var(--text-primary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 8rem;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
        height: 350px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid, .calculator-container, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem 2rem;
        transition: var(--transition-smooth);
        z-index: 99;
        border-top: 1px solid var(--border-color);
    }
    
    .navbar.open {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-visual {
        height: 280px;
    }
    
    .visual-wrapper {
        transform: scale(0.75);
    }
    
    .web-card {
        left: -15px; /* Pull inward to prevent overflow */
    }
    
    .ai-card {
        right: -15px; /* Pull inward to prevent overflow */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-categories {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .skill-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .modal-header h3 {
        font-size: 1.4rem;
    }

    .calculator-container {
        padding: 1.5rem;
    }
}

/* Space canvas background */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -4;
    pointer-events: none;
}

/* Modal Popup Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.15);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.75rem;
    margin: 0.5rem 0;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Scroll Progress indicator */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--grad-primary);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Trust Banner */
.trust-banner {
    padding: 3rem 2rem 1rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.brands-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0.7;
}

.brand-item {
    font-family: var(--ff-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* FAQ Accordion Styling */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.faq-question h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-icon {
    font-size: 1.1rem;
    color: var(--color-cyan);
    transition: var(--transition-fast);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, margin-top 0.35s ease-out;
    margin-top: 0;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* FAQ Active state */
.faq-item.active {
    border-color: var(--color-cyan);
    background: var(--bg-card-hover);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--color-purple);
}

.faq-item.active .faq-answer {
    margin-top: 1rem;
}

/* Floating WhatsApp button */
.float-wa-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 98;
    text-decoration: none;
    transition: var(--transition-smooth);
    animation: waPulse 2s infinite;
}

.float-wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(13, 20, 35, 0.9);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: var(--transition-fast);
}

.float-wa-btn:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .float-wa-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}


