/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette - Modern healthcare tech */
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --secondary-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f8fafc;
    --text-gray: #cbd5e1;
    --text-dark: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.2);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-brand: 'Sofia Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 8rem 0;
    --container-padding: 0 2rem;
    
    /* Animation */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Global subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 9999;
}

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

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

/* Subtle glow on navbar when scrolled */
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(37, 99, 235, 0.1);
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-light);
    letter-spacing: -0.01em;
}

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

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-cyan));
    transition: var(--transition-smooth);
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

/* Animated gradient mesh background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(3%, 3%) rotate(1deg); }
    66% { transform: translate(-3%, 3%) rotate(-1deg); }
}

/* Grid pattern overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 3;
}

.hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    height: 100vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    padding: 0 3rem 12rem 3rem;
}

.hero-left {
    flex: none;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    width: 100%;
    max-width: 750px;
}

.hero-right {
    display: none;
    /* Animation now covers full screen as background */
}

.hero-text {
    max-width: 100%;
    text-align: left;
    position: relative;
    z-index: 4;
    width: 100%;
}


.mesh-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.data-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(37, 99, 235, 0.55);
    overflow: hidden;
}

.data-item {
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    animation: dataFloat 8s linear forwards;
}

@keyframes dataFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% {
        opacity: 0.75;
    }
    90% {
        opacity: 0.75;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) translateX(20px);
    }
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(15, 23, 42, 0.2) 50%,
        rgba(15, 23, 42, 0.4) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-cyan) 50%, var(--accent-purple) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-light);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient border effect */
.btn-secondary::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
}

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

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--text-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

/* Decorative line under section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-cyan));
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

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

/* About Section */
.about {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    padding: 0;
    position: relative;
}

/* Subtle dot pattern texture */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* Ambient light beam */
.about::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.about .container {
    max-width: 1400px;
    padding: 0;
}

.about-right {
    padding: var(--section-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.about .section-header {
    text-align: left;
    margin-bottom: 3rem;
    padding: 0 3rem;
}

.about .section-subtitle {
    text-align: left;
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1.6;
}

.about-text {
    padding: 0 3rem;
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.8;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-text p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-content {
    display: flex;
    min-height: 50vh;
}

.about-image {
    flex: 0 0 50%;
    overflow: hidden;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 80%; /* Show face at 20% up from bottom */
    display: block;
    transition: var(--transition-smooth);
    filter: brightness(1) contrast(1.05);
}

.profile-image:hover {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.08);
}

/* Gradient overlay on profile image */
.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.1) 0%,
        transparent 40%,
        transparent 60%,
        rgba(6, 182, 212, 0.08) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.about-image:hover::after {
    opacity: 1;
}

.about-right {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    min-height: auto; /* Let content determine height */
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

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

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Enhanced glassmorphism background */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan));
    opacity: 0;
    transition: var(--transition-smooth);
}

/* Animated gradient border */
.service-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        var(--primary-blue),
        var(--secondary-cyan),
        var(--accent-purple)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(37, 99, 235, 0.1);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover::after {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.service-description {
    color: var(--text-gray);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Expertise Section */
.expertise {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.tech-stack {
    display: grid;
    gap: 3rem;
}

.tech-category {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
}

.tech-category h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.tech-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* Blog Section */
.blog {
    background: var(--bg-dark);
}

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

.blog-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

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

.blog-category {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    position: relative;
}

/* Light beam accent for contact section */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    text-align: center;
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.contact-details p {
    color: var(--text-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    position: relative;
}

/* Noise texture overlay for depth */
.contact-form::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    border-radius: 20px;
    pointer-events: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 
        0 0 0 3px rgba(37, 99, 235, 0.1),
        0 4px 20px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    position: relative;
}

/* Subtle gradient at top of footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-blue),
        var(--secondary-cyan),
        transparent
    );
    opacity: 0.5;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo .logo-text {
    font-family: var(--font-brand);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-text {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Responsive Design */

/* Extra wide screens - ensure content doesn't get too spread out */
@media (min-width: 1920px) {
    .nav-container,
    .container,
    .hero-content {
        max-width: 1600px;
        padding-left: 4rem;
        padding-right: 4rem;
    }
    
    .hero-container {
        max-width: 1600px;
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (max-width: 1440px) {
    .nav-container,
    .container,
    .hero-container,
    .hero-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 1024px) {
    .nav-container,
    .container,
    .hero-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-content {
        padding: 0 1.5rem 10rem;
    }
    
    .hero-left {
        max-width: 650px;
    }
    
    .about .section-header,
    .about-text {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .about-right {
        padding: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
        --container-padding: 0 1.25rem;
    }
    
    .nav-container {
        padding: 1rem 1.25rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        padding: 0 1.25rem 8rem;
        min-height: 100vh;
        align-items: flex-end;
        justify-content: center;
    }
    
    .hero-left {
        padding: 0;
        max-width: 100%;
    }
    
    .hero-text {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        flex: 1;
        min-width: 0;
    }
    
    .about-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .about-image {
        flex: none;
        height: 40vh;
        min-height: 300px;
        order: -1;
    }
    
    .profile-image {
        object-position: center center; /* Center on mobile */
    }
    
    .about-right {
        flex: none;
        padding: 2rem 1.25rem;
    }
    
    .about .section-header {
        text-align: left;
        padding: 0;
        margin-bottom: 1.5rem;
    }
    
    .about .section-subtitle {
        text-align: left;
        font-size: 1rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .about-text {
        padding: 0;
        text-align: left;
        font-size: 0.95rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .about-text p {
        margin-bottom: 1rem;
    }
    
    .about-text p:last-child {
        margin-bottom: 0;
    }
    
    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-tags {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.875rem 1rem;
    }
    
    .hero-content {
        padding: 0 1rem 6rem;
    }
    
    .about-right {
        padding: 1.5rem 1rem;
    }
    
    .about .section-header,
    .about-text {
        padding-left: 0;
        padding-right: 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        max-width: 100%;
        width: 100%;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

/* Scroll reveal animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.scroll-reveal {
    opacity: 0;
}

.scroll-reveal.revealed {
    animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger animation delay for multiple elements */
.scroll-reveal.revealed:nth-child(1) { animation-delay: 0s; }
.scroll-reveal.revealed:nth-child(2) { animation-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { animation-delay: 0.2s; }
.scroll-reveal.revealed:nth-child(4) { animation-delay: 0.3s; }
.scroll-reveal.revealed:nth-child(5) { animation-delay: 0.4s; }
.scroll-reveal.revealed:nth-child(6) { animation-delay: 0.5s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
