/* =====================================================
   AVINASH RAI - DATA ENGINEER PORTFOLIO
   Modern, Professional, SEO-Optimized Design
===================================================== */

/* =====================
   CSS VARIABLES
===================== */
:root {
    /* Primary Colors */
    --primary: #38B6FF;
    --secondary: #FF6B9D;
    --accent: #00D9A3;
    --purple: #8B5CF6;
    --orange: #FF9F43;
    
    /* Backgrounds */
    --bg-dark: #0a0e27;
    --bg-darker: #050711;
    --bg-card: #1a1f3a;
    --bg-card-hover: #242b4b;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #8892a6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #38B6FF 0%, #8B5CF6 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B9D 0%, #FF9F43 100%);
    --gradient-accent: linear-gradient(135deg, #00D9A3 0%, #38B6FF 100%);
    
    /* Specific Tech Gradients */
    --snowflake-gradient: linear-gradient(135deg, #29B5E8 0%, #00A4EF 100%);
    --dbt-gradient: linear-gradient(135deg, #FF694B 0%, #FF8A65 100%);
    --azure-gradient: linear-gradient(135deg, #0078D4 0%, #00BCF2 100%);
    --ai-gradient: linear-gradient(135deg, #8B5CF6 0%, #D946EF 100%);
    --matillion-gradient: linear-gradient(135deg, #00A4EF 0%, #0073E6 100%);
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.3);
    --glow: 0 0 20px rgba(56, 182, 255, 0.4);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* =====================
   RESET & BASE
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: white;
}

/* =====================
   CONTAINER & LAYOUT
===================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* =====================
   TYPOGRAPHY
===================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

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

.inline-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    transition: var(--transition);
}

.inline-link:hover {
    color: var(--secondary);
    border-color: var(--secondary);
}

/* =====================
   NAVIGATION
===================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px);
    padding: 1.25rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(56, 182, 255, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(10, 14, 39, 0.95);
}

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

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-icon {
    font-size: 1.8rem;
}

.nav-brand .highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

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

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* =====================
   HERO SECTION
===================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

/* Animated Particles Background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(56, 182, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 20%, rgba(0, 217, 163, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 182, 255, 0.1);
    border: 1px solid rgba(56, 182, 255, 0.3);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tag {
    background: var(--bg-card);
    border: 1px solid rgba(56, 182, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--primary);
    background: rgba(56, 182, 255, 0.1);
    transform: translateY(-2px);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description strong {
    color: var(--primary);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0.6;
}

.scroll-indicator span {
    width: 3px;
    height: 15px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scroll {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* =====================
   BUTTONS
===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 182, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 182, 255, 0.4);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

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

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

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

/* =====================
   SECTION HEADERS
===================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* =====================
   ABOUT SECTION
===================== */
.about {
    background: var(--bg-darker);
}

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

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

.specializations {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(56, 182, 255, 0.1);
    margin-top: 2rem;
}

.specializations h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.specializations ul {
    list-style: none;
}

.specializations li {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.specializations li i {
    color: var(--accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

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

.highlight-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(56, 182, 255, 0.1);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.highlight-icon i {
    font-size: 1.8rem;
    color: white;
}

.highlight-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

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

/* =====================
   EXPERTISE SECTION
===================== */
.expertise {
    background: var(--bg-dark);
}

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

.expertise-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(56, 182, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.snowflake-icon { background: var(--snowflake-gradient); color: white; }
.dbt-icon { background: var(--dbt-gradient); color: white; }
.matillion-icon { background: var(--matillion-gradient); color: white; }
.azure-icon { background: var(--azure-gradient); color: white; }
.ai-icon { background: var(--ai-gradient); color: white; }
.automation-icon { background: var(--gradient-accent); color: white; }

.expertise-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

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

.expertise-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expertise-skills span {
    background: rgba(56, 182, 255, 0.1);
    border: 1px solid rgba(56, 182, 255, 0.2);
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.expertise-skills span:hover {
    background: rgba(56, 182, 255, 0.2);
    color: var(--primary);
}

/* =====================
   PROJECTS SECTION
===================== */
.projects {
    background: var(--bg-darker);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(56, 182, 255, 0.2);
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(56, 182, 255, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(56, 182, 255, 0.05) 100%);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.project-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.ai-gradient { background: var(--ai-gradient); }
.azure-gradient { background: var(--azure-gradient); }
.data-gradient { background: var(--gradient-primary); }
.matillion-gradient { background: var(--matillion-gradient); }
.dbt-gradient { background: var(--dbt-gradient); }
.analytics-gradient { background: var(--gradient-secondary); }
.snowflake-gradient { background: var(--snowflake-gradient); }
.alteryx-gradient { background: linear-gradient(135deg, #0078C8 0%, #00A4EF 100%); }
.ml-gradient { background: var(--gradient-accent); }
.health-gradient { background: linear-gradient(135deg, #FF6B9D 0%, #C471ED 100%); }
.nlp-gradient { background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%); }
.basket-gradient { background: linear-gradient(135deg, #FF9F43 0%, #F97316 100%); }

.project-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.project-type {
    background: rgba(56, 182, 255, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-description strong {
    color: var(--primary);
    font-weight: 600;
}

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.highlight i {
    color: var(--accent);
}

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

.project-tech span {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    transition: var(--transition);
}

.project-tech span:hover {
    background: rgba(139, 92, 246, 0.3);
    color: var(--purple);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary);
    transform: translateX(3px);
}

.project-link.secondary {
    color: var(--accent);
}

.project-link.secondary:hover {
    color: var(--orange);
}

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

/* =====================
   TECH STACK SECTION
===================== */
.tech-stack-section {
    background: var(--bg-dark);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.tech-category {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(56, 182, 255, 0.1);
    transition: var(--transition);
}

.tech-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.tech-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-category-header i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-category-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.tech-items {
    display: grid;
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(56, 182, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(56, 182, 255, 0.1);
    transform: translateX(5px);
}

.tech-item i {
    font-size: 1.5rem;
}

.tech-item span {
    color: var(--text-secondary);
    font-weight: 500;
}

.certifications {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(56, 182, 255, 0.2);
    text-align: center;
}

.certifications h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.certifications h3 i {
    color: var(--accent);
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cert-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(56, 182, 255, 0.3);
}

/* =====================
   CONTACT SECTION
===================== */
.contact {
    background: var(--bg-darker);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(56, 182, 255, 0.1);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
    color: white;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

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

.contact-cta-box {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(56, 182, 255, 0.2);
}

.cta-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.availability-list {
    list-style: none;
    margin-bottom: 2rem;
}

.availability-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.availability-list i {
    color: var(--accent);
}

.social-links-box {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(56, 182, 255, 0.1);
}

.social-links-box h4 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-darker);
    border: 1px solid rgba(56, 182, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gradient-primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

/* =====================
   FOOTER
===================== */
.footer {
    background: var(--bg-darker);
    /* extra bottom padding so fixed chat button doesn't overlap footer links */
    padding: 4rem 0 6rem;
    border-top: 1px solid rgba(56, 182, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-brand .highlight {
    color: var(--primary);
}

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

.footer-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column a {
    /* display links horizontally on larger screens */
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-right: 1.25rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(56, 182, 255, 0.1);
}

/* Restore vertical stacking for small screens */
@media (max-width: 768px) {
    .footer-column a { display: block; margin-right: 0; }
    .footer-content { grid-template-columns: 1fr; }
}

/* =====================
   Redesigned Footer (Horizontal, Responsive)
   Clean, minimal, professional — optimized for data/AI portfolio
===================== */
.site-footer {
    background: #0f0f12;
    color: var(--text-secondary);
    padding: 3.5rem 0 3.5rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.site-footer .footer-inner {
    display: block;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.footer-col { }

.footer-brand .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
}

.brand-icon { font-size: 1.6rem; }
.brand-title { font-size: 1.25rem; letter-spacing: -0.4px; }
.brand-tagline { color: var(--text-secondary); margin-top: 0.65rem; max-width: 420px; line-height: 1.6; }

.footer-title { color: var(--text-primary); font-size: 1rem; margin-bottom: 0.75rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-list a { color: var(--text-secondary); text-decoration: none; font-size: 0.98rem; transition: var(--transition); }
.footer-list a:hover { color: var(--text-primary); transform: translateY(-2px); }
.social-list a i { margin-right: 0.65rem; color: var(--text-primary); width: 1.0rem; display: inline-block; }

.footer-divider { height: 1px; margin: 1.8rem 0; background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.03)); }

.site-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
}
.site-footer .footer-bottom .footer-quote { color: var(--text-secondary); font-style: italic; }

@media (max-width: 980px) {
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
    .brand-tagline { max-width: none; }
}

@media (max-width: 640px) {
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-list { gap: 0.5rem; }
    .footer-title { margin-bottom: 0.5rem; }
}

/* Footer logos (professional tech badges) */
.footer-logos { width: 100%; margin-bottom: 0.5rem; }
.footer-logos ul { display: flex; gap: 0.75rem; align-items: center; list-style: none; padding: 0; margin: 0 0 0.5rem 0; }
.footer-logos .logo-item { display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.02); padding: 0.45rem 0.75rem; border-radius: 8px; color: var(--text-secondary); font-weight: 600; font-size: 0.95rem; transition: var(--transition); border: 1px solid rgba(255,255,255,0.02); }
.footer-logos .logo-item i { font-size: 1.05rem; color: var(--text-primary); opacity: 0.95; }
.footer-logos .logo-item span { color: var(--text-secondary); font-size: 0.9rem; }
.footer-logos .logo-item:hover { transform: translateY(-3px); background: rgba(56,182,255,0.06); color: var(--text-primary); border-color: rgba(56,182,255,0.08); }

@media (max-width: 640px) {
    .footer-logos ul { flex-wrap: wrap; gap: 0.5rem; }
    .footer-logos .logo-item { padding: 0.4rem 0.6rem; font-size: 0.9rem; }
}


.footer-bottom p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-quote {
    font-style: italic;
    font-size: 0.9rem;
}

/* =====================
   BACK TO TOP BUTTON
===================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

/* =====================
   RESPONSIVE DESIGN
===================== */

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* =====================
   BACK TO TOP BUTTON
===================== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 90px; /* Position above chat button */
    z-index: 1000;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(10px);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* =====================
   UTILITY CLASSES
===================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* =====================================================
   🤖 AVINASH AI DIGITAL TWIN — CHAT WIDGET (CSS)
   Fully Compatible with Existing Design System
===================================================== */
/* Chat styles were moved to `bot/ai-chat.css` to avoid duplication. */

