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

:root {
    /* Modern Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    /* Glassmorphism Colors */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glass-shadow);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.nav-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-logo .logo-text:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled .nav-logo .logo-text {
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    font-size: 17px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #007aff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #007aff;
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background-color: #1d1d1f;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 80px;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: heroShimmer 8s ease-in-out infinite;
}

@keyframes heroShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.1); }
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: rgba(102, 126, 234, 0.1);
    color: #1d1d1f;
    border: 2px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #1d1d1f;
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

/* AI Visualization */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.ai-visualization {
    width: 500px;
    height: 500px;
    position: relative;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.neural-network {
    width: 100%;
    height: 100%;
    position: relative;
    background: 
        radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
        conic-gradient(from 0deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    animation: neuralPulse 6s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.neural-network::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: innerGlow 4s ease-in-out infinite reverse;
}

.node {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 50%;
    animation: nodeFloat 4s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: corePulse 2s ease-in-out infinite;
}

.node:nth-child(1) {
    top: 15%;
    left: 25%;
    animation-delay: 0s;
}

.node:nth-child(2) {
    top: 15%;
    right: 25%;
    animation-delay: 0.8s;
}

.node:nth-child(3) {
    top: 50%;
    left: 5%;
    animation-delay: 1.6s;
}

.node:nth-child(4) {
    top: 50%;
    right: 5%;
    animation-delay: 2.4s;
}

.node:nth-child(5) {
    bottom: 15%;
    left: 25%;
    animation-delay: 3.2s;
}

.node:nth-child(6) {
    bottom: 15%;
    right: 25%;
    animation-delay: 4s;
}

/* Connection lines */
.node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%) rotate(45deg);
    animation: connectionGlow 3s ease-in-out infinite;
}

@keyframes neuralPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.05) rotate(180deg); 
        opacity: 1; 
    }
}

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

@keyframes nodeFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: translateY(-15px) scale(1.1); 
        box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
    }
}

@keyframes corePulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}

@keyframes connectionGlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.section-header p {
    font-size: 21px;
    color: #6e6e73;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f5f5f7;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
}

.about-text p {
    font-size: 19px;
    color: #6e6e73;
    margin-bottom: 24px;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat h4 {
    font-size: 48px;
    font-weight: 700;
    color: #007aff;
    margin-bottom: 8px;
}

.stat p {
    font-size: 17px;
    color: #6e6e73;
    font-weight: 500;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px 32px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

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

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

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.service-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 32px;
    background: var(--primary-gradient);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--primary-gradient);
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.service-card:hover .service-icon::before {
    opacity: 0.3;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.service-card p {
    font-size: 17px;
    color: #6e6e73;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    background: #f5f5f7;
}

.portfolio-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    position: relative;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 0.05;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.portfolio-image {
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-preview {
    width: 80%;
    max-width: 600px;
}

.browser-mockup {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .browser-mockup {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1.05);
}

.browser-header {
    background: #f5f5f7;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e5e5e7;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d1d6;
}

.browser-dots span:first-child {
    background: #ff5f57;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:last-child {
    background: #28ca42;
}

.browser-url {
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #6e6e73;
    flex: 1;
    text-align: center;
}

.browser-content {
    padding: 20px;
}

.property-card {
    display: flex;
    gap: 16px;
    align-items: center;
}

.property-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 8px;
}

.property-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1d1d1f;
}

.property-info p {
    font-size: 14px;
    color: #007aff;
    font-weight: 600;
}

.portfolio-content {
    padding: 40px;
}

.portfolio-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.portfolio-category {
    font-size: 17px;
    color: #007aff;
    font-weight: 600;
    margin-bottom: 20px;
}

.portfolio-content p {
    font-size: 19px;
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 24px;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.tech-tag {
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
}

.contact-info p {
    font-size: 19px;
    color: #6e6e73;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 17px;
    color: #1d1d1f;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: #007aff;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.contact-form:hover::before {
    transform: scaleX(1);
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 17px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1d1d1f;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    margin-bottom: 40px;
}

.footer-logo .logo {
    height: 50px;
    width: auto;
    max-width: 250px;
    margin-bottom: 16px;
    object-fit: contain;
    display: block;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-logo .logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.footer-logo p {
    font-size: 17px;
    color: #a1a1a6;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #a1a1a6;
    text-decoration: none;
    font-size: 17px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #424245;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #a1a1a6;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .section-header p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 16px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat {
        padding: 20px;
    }

    .stat h4 {
        font-size: 36px;
    }

    .portfolio-content {
        padding: 24px;
    }

    .contact-form {
        padding: 24px;
    }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
    }
    
    .btn-secondary {
        border-color: #000;
        color: #000;
    }
}

/* Language Toggle Button */
.language-toggle {
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    background: rgba(102, 126, 234, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    padding: 12px 20px !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.language-toggle:hover {
    background: rgba(102, 126, 234, 1) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}

.language-toggle:active {
    transform: translateY(-1px) scale(1.02) !important;
}

/* Enhanced visibility when scrolling */
.language-toggle.scrolled {
    background: rgba(102, 126, 234, 1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}

/* Contact Form Button Visibility */
.contact-form .btn {
    background: rgba(102, 126, 234, 0.9) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3) !important;
    min-height: 50px !important;
    padding: 16px 32px !important;
    font-size: 17px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Portfolio Button Specific Styling */
.portfolio-link {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative !important;
    background: rgba(102, 126, 234, 0.1) !important;
    color: #1d1d1f !important;
    border: 2px solid rgba(102, 126, 234, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 16px 32px !important;
    border-radius: 16px !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    transition: all 0.3s ease !important;
}

.portfolio-link:hover {
    background: rgba(102, 126, 234, 0.2) !important;
    color: #1d1d1f !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2) !important;
}

.contact-form .btn:hover {
    background: rgba(102, 126, 234, 1) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4) !important;
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .language-toggle {
        display: none;
    }
    
    .hero {
        background: none;
        color: #000;
    }
    
    .hero-title {
        -webkit-text-fill-color: initial;
        color: #000;
    }
}
