/* CSS Custom Properties */
:root {
    /* Colors - Based on logo colors with dark theme */
    --primary-color: #2196F3;
    --primary-light: #64B5F6;
    --primary-dark: #1976D2;
    --secondary-color: #1E88E5;
    --accent-color: #2196F3;
    
    /* Dark theme colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1419;
    --bg-tertiary: #1a1f2e;
    --bg-card: #1e2330;
    --bg-overlay: rgba(10, 14, 26, 0.9);
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d1;
    --text-muted: #8892a0;
    --text-accent: var(--primary-color);
    
    /* Border colors */
    --border-color: #2a3441;
    --border-hover: #3d4b5c;
    
    /* Shadows */
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 20px rgba(33, 150, 243, 0.15);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Roboto Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
    --content-padding: 0 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius - Limited as per requirements */
    --border-radius-small: 3px;
    --border-radius-medium: 5px;
}

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

/* Remove default bold font weight from headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

html {
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--content-padding);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-medium);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: var(--bg-overlay);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--content-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-small);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    position: relative;
    transition: color var(--transition-fast);
}

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

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

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

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-small);
    transition: background-color var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background-color: var(--bg-tertiary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(33, 150, 243, 0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--content-padding);
}

.hero-title {
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out;
}

.hero-title-main {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.hero-title-sub {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--text-secondary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 8px;
}

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

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius-medium);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-medium);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.cta-button.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

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

section:nth-child(even) {
    background-color: var(--bg-secondary);
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.achievement-item {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
}

.achievement-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.achievement-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.achievement-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

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

.tech-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    padding: 32px;
    transition: all var(--transition-medium);
}

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

.tech-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.tech-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.tech-items {
    display: grid;
    gap: 16px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-small);
    transition: all var(--transition-fast);
}

.tech-item:hover {
    background: var(--bg-secondary);
    transform: translateX(8px);
}

.tech-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.tech-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Solutions Section */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    padding: 32px;
    transition: all var(--transition-medium);
}

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

.solution-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.solution-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.solution-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.solution-features {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.solution-features li:last-child {
    margin-bottom: 0;
}

.solution-features i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.solution-metrics {
    display: flex;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    transition: all var(--transition-medium);
}

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

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.6;
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: var(--border-radius-small);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

/* Contact Section - Redesigned */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Contact Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

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

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

.contact-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.contact-card-content h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 400;
}

.contact-card-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Cooperation Section */
.cooperation-section {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-medium);
    padding: 48px 32px;
    border: 1px solid var(--border-color);
}

.cooperation-header {
    text-align: center;
    margin-bottom: 48px;
}

.cooperation-header h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 400;
}

.cooperation-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.cooperation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-medium);
    padding: 32px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.cooperation-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.cooperation-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(0, 188, 212, 0.05));
    z-index: 0;
}

.cooperation-card.featured > * {
    position: relative;
    z-index: 1;
}

.cooperation-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 400;
}

.cooperation-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.cooperation-card.featured:hover {
    transform: translateY(-4px) scale(1.05);
}

.cooperation-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cooperation-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.cooperation-card-header h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 400;
    margin: 0;
}

.cooperation-card-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.cooperation-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cooperation-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cooperation-features i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Contact CTA Section */
.contact-cta {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: var(--border-radius-medium);
    padding: 48px 32px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(33, 150, 243, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 400;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius-medium);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-medium);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.cta-btn.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.cta-btn.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
}

.footer-text p {
    color: var(--text-muted);
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scroll animations - Hardware accelerated */
.fade-in {
    opacity: 0;
    transform: translateY(50px) translateZ(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* Remove will-change after animation completes */
.fade-in.visible {
    will-change: auto;
}

/* ===== AOS ANIMATION ENHANCEMENTS ===== */

/* Custom AOS animation styles for better performance */
[data-aos] {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Custom smooth animations to complement AOS */

/* ===== ADVANCED COOL ANIMATIONS ===== */

/* 1. Hero Matrix Effect */
#hero-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

/* 2. Floating Tech Icons */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    animation: floatingMove 20s infinite linear;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
}

.floating-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 60%; right: 15%; animation-delay: -5s; }
.floating-icon:nth-child(3) { top: 30%; left: 70%; animation-delay: -10s; }
.floating-icon:nth-child(4) { bottom: 30%; left: 20%; animation-delay: -15s; }
.floating-icon:nth-child(5) { top: 70%; right: 30%; animation-delay: -8s; }

@keyframes floatingMove {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0px) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
}



/* 4. Typewriter Effect */
.typewriter-text {
    position: relative;
    white-space: nowrap;
    color: var(--text-secondary);
}

.typewriter-text::after {
    content: '|';
    color: var(--accent-color);
    animation: blink-caret 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink-caret {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* 5. Advanced Hologram Text Effect */
.hologram-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), #00d4ff, #0099ff, var(--primary-color));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: advancedHologram 4s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(33, 150, 243, 0.6));
    position: relative;
    overflow: hidden;
}

.hologram-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(33, 150, 243, 0.3) 25%, 
        rgba(0, 212, 255, 0.5) 50%, 
        rgba(33, 150, 243, 0.3) 75%, 
        transparent 100%
    );
    animation: hologramScan 3s linear infinite;
    pointer-events: none;
}

@keyframes advancedHologram {
    0%, 100% { 
        background-position: 0% 50%;
        filter: drop-shadow(0 0 12px rgba(33, 150, 243, 0.6));
    }
    25% { 
        background-position: 50% 0%;
        filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.7));
    }
    50% { 
        background-position: 100% 50%;
        filter: drop-shadow(0 0 20px rgba(0, 153, 255, 0.8));
    }
    75% { 
        background-position: 50% 100%;
        filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.7));
    }
}

@keyframes hologramScan {
    0% { transform: translateX(-100%); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* 6. Scanning Line Effect */
.scanning-line {
    position: relative;
    overflow: hidden;
}

.scanning-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.3), transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 7. Neon Text Effect */
.neon-text {
    color: var(--accent-color);
    text-shadow: 
        0 0 5px var(--accent-color),
        0 0 10px var(--accent-color),
        0 0 15px var(--accent-color),
        0 0 20px var(--accent-color);
    animation: neonFlicker 1.5s infinite alternate;
}

@keyframes neonFlicker {
    0%, 100% { 
        text-shadow: 
            0 0 5px var(--accent-color),
            0 0 10px var(--accent-color),
            0 0 15px var(--accent-color),
            0 0 20px var(--accent-color);
    }
    50% { 
        text-shadow: 
            0 0 2px var(--accent-color),
            0 0 5px var(--accent-color),
            0 0 8px var(--accent-color),
            0 0 12px var(--accent-color);
    }
}

/* 8. Pulse Glow Effect */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        color: var(--text-secondary);
        text-shadow: none;
    }
    50% { 
        color: var(--accent-color);
        text-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
    }
}

/* 9. High-Tech Text Effect */
.cyber-text {
    position: relative;
    background: linear-gradient(45deg, var(--accent-color), #00d4ff, var(--primary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: techGlow 2s ease-in-out infinite;
    overflow: hidden;
}

.cyber-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(33, 150, 243, 0.2), transparent);
    animation: techSweep 3s linear infinite;
    overflow: hidden;
}

@keyframes techGlow {
    0%, 100% { 
        background-position: 0% 50%;
        filter: drop-shadow(0 0 8px rgba(33, 150, 243, 0.6)); 
    }
    50% { 
        background-position: 100% 50%;
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); 
    }
}

@keyframes techSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 10. Wave Text Effect */
.wave-text {
    display: inline-block;
    animation: waveText 2s ease-in-out infinite;
}

@keyframes waveText {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    75% { transform: translateY(5px); }
}

/* Enhanced hover effects for interactive elements */
.floating-card {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.2);
}

/* AOS is now handling all entrance animations */

/* All entrance animations now handled by AOS library */

/* 11. Morph Card Effect */
.morph-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(33, 150, 243, 0.2);
    transition: all 0.3s ease;
}

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

.morph-card:hover::before {
    left: 100%;
}

.morph-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.3);
    border-color: var(--accent-color);
}

/* 12. Quantum Card Effect */
.quantum-card {
    position: relative;
    background: linear-gradient(45deg, transparent, rgba(33, 150, 243, 0.05), transparent);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.quantum-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), #00d4ff, var(--primary-color));
    border-radius: inherit;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    z-index: -1;
    animation: quantumBorder 3s linear infinite;
}

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

.quantum-card:hover {
    transform: rotateY(5deg) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(33, 150, 243, 0.4);
}

/* 13. High-Tech Card Effect */
.matrix-card {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 32, 56, 0.9), rgba(8, 20, 35, 0.9));
    border: 1px solid rgba(33, 150, 243, 0.4);
    overflow: hidden;
}

.matrix-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(33, 150, 243, 0.1) 3px,
            rgba(33, 150, 243, 0.1) 6px
        );
    animation: techScanLines 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.matrix-card:hover::before {
    opacity: 1;
}

@keyframes techScanLines {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.matrix-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(33, 150, 243, 0.4), inset 0 0 20px rgba(33, 150, 243, 0.1);
    transform: translateY(-2px);
}

/* 14. Advanced Circuit Board Visual Effects */
#hero-matrix {
    background: radial-gradient(circle at 50% 50%, rgba(33, 150, 243, 0.05) 0%, transparent 70%);
}

/* 15. Particle Burst Effect */
.particle-burst {
    position: relative;
    overflow: hidden;
}

.particle-burst::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: particleBurst 2s ease-out infinite;
}

@keyframes particleBurst {
    0% {
        box-shadow: 
            0 0 0 0 rgba(33, 150, 243, 0.7),
            0 0 0 0 rgba(33, 150, 243, 0.7),
            0 0 0 0 rgba(33, 150, 243, 0.7),
            0 0 0 0 rgba(33, 150, 243, 0.7);
    }
    25% {
        box-shadow: 
            20px -20px 0 0 rgba(33, 150, 243, 0.4),
            -20px 20px 0 0 rgba(33, 150, 243, 0.4),
            20px 20px 0 0 rgba(33, 150, 243, 0.4),
            -20px -20px 0 0 rgba(33, 150, 243, 0.4);
    }
    50% {
        box-shadow: 
            40px -40px 0 0 rgba(33, 150, 243, 0.2),
            -40px 40px 0 0 rgba(33, 150, 243, 0.2),
            40px 40px 0 0 rgba(33, 150, 243, 0.2),
            -40px -40px 0 0 rgba(33, 150, 243, 0.2);
    }
    100% {
        box-shadow: 
            60px -60px 0 0 rgba(33, 150, 243, 0),
            -60px 60px 0 0 rgba(33, 150, 243, 0),
            60px 60px 0 0 rgba(33, 150, 243, 0),
            -60px -60px 0 0 rgba(33, 150, 243, 0);
    }
}

/* ===== PROJECT MODAL STYLES ===== */

/* Modal Base */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Overlay with Blur Effect */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
    animation: modalOverlayIn 0.3s ease-out;
}

@keyframes modalOverlayIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

/* Modal Container with High-Tech Effects */
.modal-container {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    background: linear-gradient(135deg, rgba(15, 32, 56, 0.95), rgba(8, 20, 35, 0.95));
    border: 2px solid transparent;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    transform: scale(0.7) rotateX(45deg);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(33, 150, 243, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal.active .modal-container {
    transform: scale(1) rotateX(0deg);
    animation: modalContainerIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes modalContainerIn {
    0% {
        transform: scale(0.7) rotateX(45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotateX(-5deg);
    }
    100% {
        transform: scale(1) rotateX(0deg);
        opacity: 1;
    }
}

/* Quantum Border Effect */
.modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), #00d4ff, var(--primary-color));
    background-size: 400% 400%;
    border-radius: inherit;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    z-index: -1;
    animation: quantumModalBorder 3s linear infinite;
}

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

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.1), rgba(30, 136, 229, 0.1));
    border-bottom: 1px solid rgba(33, 150, 243, 0.2);
    position: relative;
    overflow: hidden;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: headerScan 2s linear infinite;
}

@keyframes headerScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    background: linear-gradient(45deg, var(--primary-color), #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.3), transparent);
    transition: left 0.3s ease;
}

.modal-close:hover::before {
    left: 100%;
}

.modal-close:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: var(--primary-color);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.4);
}

/* Modal Content */
.modal-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    padding: 32px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Custom Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(33, 150, 243, 0.1);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Modal Image */
.modal-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(30, 136, 229, 0.1));
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.modal-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    animation: modalIconPulse 2s ease-in-out infinite;
}

@keyframes modalIconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(33, 150, 243, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(33, 150, 243, 0.8)); }
}

.modal-image-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
}

.modal-category-badge {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 400;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Modal Details */
.modal-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-details h3 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.modal-details h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.modal-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Modal Features */
#modalFeatures {
    list-style: none;
    padding: 0;
    margin: 0;
}

#modalFeatures li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
}

#modalFeatures li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

#modalFeatures li:last-child {
    border-bottom: none;
}

/* Modal Tech Stack */
.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-tech-tags .tech-tag {
    background: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.9rem;
    border: 1px solid rgba(33, 150, 243, 0.2);
    transition: all 0.3s ease;
}

.modal-tech-tags .tech-tag:hover {
    background: rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Modal Achievements */
.modal-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.achievement-item {
    background: rgba(33, 150, 243, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: var(--border-radius-medium);
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: rgba(33, 150, 243, 0.1);
    transform: translateY(-2px);
}

.achievement-value {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    display: block;
}

.achievement-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    
    .modal-image {
        height: 150px;
    }
    
    .modal-achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* AOS library handles all entrance animations now */

/* Mobile Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --content-padding: 0 16px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-overlay);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: right var(--transition-medium);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .language-switcher {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .achievement-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .solution-metrics {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cooperation-section {
        padding: 32px 20px;
    }
    
    .cooperation-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cooperation-card.featured {
        transform: none;
    }
    
    .cooperation-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ===== ADVANCED ANIMATION EFFECTS ===== */

/* 1. Counter Animation for Numbers */
.counter-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.counter-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typewriter 3s steps(20) forwards, blink 1s infinite 3s;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

/* 3. Floating Cards Animation */
.floating-card {
    animation: float 6s ease-in-out infinite;
    transform-origin: center;
}

.floating-card[data-delay="0"] { animation-delay: 0s; }
.floating-card[data-delay="200"] { animation-delay: 0.2s; }
.floating-card[data-delay="400"] { animation-delay: 0.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(0.5deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-0.5deg); }
}

/* 4. Pulse Icon Effect */
.pulse-icon {
    position: relative;
}

.pulse-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s cubic-bezier(0.25, 0, 0, 1) infinite;
}

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

/* 5. Hover Glow Effect */
.hover-glow {
    position: relative;
    transition: all 0.3s ease;
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.hover-glow:hover::before {
    opacity: 0.3;
}

.hover-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
}

/* 6. 3D Flip Card Effect */
.flip-card {
    perspective: 1000px;
    height: 420px; /* Reduced height for more compact layout */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left; /* Align text to left for better readability */
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius-medium);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    justify-content: space-between;
    align-items: stretch;
    overflow: hidden;
    padding: 16px;
    gap: 8px;
}

.flip-card-back h3 {
    color: white;
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 600;
    flex-shrink: 0;
}

.flip-card-back p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin: 8px 0 0 0;
    font-size: 0.9rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    flex-shrink: 1;
}

.flip-card-back .solution-metrics {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    margin: 10px 0 6px 0;
    flex-shrink: 0;
}

.flip-card-back .metric-value {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.flip-card-back .metric-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.3;
}

/* 7. Parallax Scroll Effect */
.parallax-card {
    transition: transform 0.1s ease-out;
}

/* 8. Zoom Effect for Images */
.zoom-effect {
    overflow: hidden;
    position: relative;
}

.zoom-effect .project-placeholder {
    transition: transform 0.5s ease;
}

.zoom-effect:hover .project-placeholder {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 150, 243, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-overlay i {
    font-size: 2rem;
    color: white;
}

.zoom-effect:hover .project-overlay {
    opacity: 1;
}

/* 9. Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.magnetic-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(33, 150, 243, 0.4);
}

/* 10. Wave Animation */
.wave-effect {
    position: relative;
    overflow: hidden;
}

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

.wave-effect:hover::before {
    left: 100%;
}

/* 11. Delayed Fade-in Animations */
.fade-in-delayed {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInDelayed 1s ease-out 0.5s forwards;
}

.fade-in-delayed-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInDelayed 1s ease-out 1s forwards;
}

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

/* 12. Tilt Effect */
[data-tilt] {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

[data-tilt]:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* 13. Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    animation: floatingIcon var(--duration, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
}

@keyframes floatingIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Mobile Responsive Adjustments for Effects */
@media (max-width: 768px) {
    .typewriter {
        animation: none;
        border: none;
        white-space: normal;
    }
    
    .floating-card {
        animation: none;
    }
    
    .flip-card {
        height: auto; /* Remove fixed height on mobile */
    }
    
    .flip-card:hover .flip-card-inner {
        transform: none;
    }
    
    .flip-card-front, .flip-card-back {
        position: relative; /* Change to relative positioning on mobile */
        height: auto;
        padding: 20px;
    }
    
    .flip-card-back {
        display: none; /* Hide back side on mobile */
    }
    
    .flip-card-back h3 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .flip-card-back p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-top: 12px;
    }
    
    .flip-card-back .metric-value {
        font-size: 1.6rem;
    }
    
    .flip-card-back .metric-label {
        font-size: 0.85rem;
    }
    
    .magnetic-btn:hover {
        transform: none;
    }
    
    .floating-elements {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .hero-title-sub {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tech-category,
    .solution-card {
        padding: 24px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #4a5568;
        --text-secondary: #e2e8f0;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    .scroll-indicator,
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    section {
        padding: 40px 0;
        page-break-inside: avoid;
    }
}

/* Learn More Modal Styles */
#learnMoreModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#learnMoreModal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

#learnMoreModal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
    animation: modalOverlayIn 0.3s ease-out;
}

#learnMoreModal .modal-container {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    background: linear-gradient(135deg, rgba(15, 32, 56, 0.95), rgba(8, 20, 35, 0.95));
    border: 2px solid transparent;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    transform: scale(0.7) rotateX(45deg);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(33, 150, 243, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#learnMoreModal.active .modal-container {
    transform: scale(1) rotateX(0deg);
    animation: modalContainerIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#learnMoreModal .modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), #00d4ff, var(--primary-color));
    background-size: 400% 400%;
    border-radius: inherit;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    z-index: -1;
    animation: quantumModalBorder 3s linear infinite;
}

#learnMoreModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.1), rgba(30, 136, 229, 0.1));
    border-bottom: 1px solid rgba(33, 150, 243, 0.2);
    position: relative;
    overflow: hidden;
}

#learnMoreModal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: headerScan 2s linear infinite;
}

#learnMoreModal .modal-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    background: linear-gradient(45deg, var(--primary-color), #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

#learnMoreModal .modal-close {
    width: 40px;
    height: 40px;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#learnMoreModal .modal-close::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

#learnMoreModal .modal-close:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

#learnMoreModal .modal-close:hover::before {
    width: 100%;
    height: 100%;
}

#learnMoreModal .modal-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    padding: 32px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}


.learn-modal-left {
    display: flex;
    flex-direction: column;
}

.learn-modal-icon {
    text-align: left;
    margin-bottom: 32px;
}

.learn-modal-icon i {
    font-size: 4rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding: 24px;
    border-radius: 20px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border: 2px solid rgba(var(--primary-rgb), 0.2);
}

.learn-modal-text h4 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: left;
    line-height: 1.3;
}

.learn-modal-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 1.1rem;
    text-align: left;
}

.learn-modal-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.learn-modal-features {
    display: grid;
    gap: 24px;
    margin-bottom: 0;
}

.learn-modal-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.learn-modal-features .feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.learn-modal-features .feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(33, 150, 243, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.25);
}

.learn-modal-features .feature-item:hover::before {
    width: 8px;
}

.learn-modal-features .feature-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.15);
    border-radius: 16px;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
}

.learn-modal-features .feature-item span {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-top: 8px;
}

.learn-modal-contact {
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 24px;
    padding: 36px;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.learn-modal-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.learn-modal-contact p {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 1.2rem;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 32px;
    border-radius: 60px;
    border: 2px solid rgba(var(--primary-rgb), 0.4);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.contact-email::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-email:hover::before {
    left: 100%;
}

.contact-email:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(33, 150, 243, 0.3);
}

.contact-email:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.contact-email i {
    color: var(--primary-color);
    font-size: 1.4rem;
    z-index: 1;
    position: relative;
}

.contact-email span {
    color: var(--text-primary);
    font-weight: 800;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
    z-index: 1;
    position: relative;
}

/* Mobile responsiveness for Learn More Modal */
@media (max-width: 768px) {
    #learnMoreModal .modal-container {
        max-width: 95%;
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    #learnMoreModal .modal-header {
        padding: 20px 24px;
    }
    
    #learnMoreModal .modal-title {
        font-size: 1.5rem;
    }
    
    #learnMoreModal .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    #learnMoreModal .modal-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    
    .learn-modal-icon i {
        font-size: 3rem;
        padding: 20px;
        border-radius: 16px;
    }
    
    .learn-modal-text h4 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .learn-modal-text p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: justify;
    }
    
    .learn-modal-features {
        gap: 20px;
    }
    
    .learn-modal-features .feature-item {
        padding: 24px;
        gap: 16px;
        border-radius: 16px;
    }
    
    .learn-modal-features .feature-item i {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        border-radius: 12px;
    }
    
    .learn-modal-features .feature-item span {
        font-size: 1rem;
    }
    
    .learn-modal-contact {
        padding: 28px 20px;
        border-radius: 20px;
    }
    
    .learn-modal-contact p {
        font-size: 1.1rem;
    }
    
    .contact-email {
        padding: 16px 24px;
        gap: 12px;
        border-radius: 50px;
    }
    
    .contact-email span {
        font-size: 1rem;
    }
}
