:root {
    --primary-color: #2b9ddc; /* Logo blue */
    --secondary-color: #69c9f0; /* Logo light blue */
    --accent-color: #2b9ddc;
    --accent-gradient: linear-gradient(135deg, #69c9f0, #2b9ddc);
    --text-color: #f5f5f5;
    --text-color-light: #dcdcdc;
    --matte-bg: #0a0a0a;
    --card-bg: #18181b;
    --border-color: #23272f;
    --max-width: 1200px;
    --border-radius: 16px;
    --header-height: 70px;
    --scroll-margin: 120px;
    --shadow: 0 4px 24px rgba(43, 157, 220, 0.08);
    --shadow-hover: 0 8px 32px rgba(43, 157, 220, 0.18);
    
    /* iPhone Safe Area Support */
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
    --safe-area-inset-right: env(safe-area-inset-right);
}

/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Disable tap highlights on iPhone */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Allow text selection for content areas */
p, h1, h2, h3, h4, h5, h6, span, div.feature-text, .lead-text, .closing-text {
    -webkit-user-select: text;
    user-select: text;
}

/* Allow interaction with form elements */
input, textarea, button, a {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: default;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px;
    /* Improve scroll performance on iOS */
    -webkit-overflow-scrolling: touch;
    /* Handle dynamic viewport on iPhone */
    height: 100%;
    height: 100vh;
    height: 100dvh;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--matte-bg);
    overflow-x: hidden;
    position: relative;
    font-size: 18px;
    /* Improve text rendering on iPhone */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Handle safe areas for iPhone X+ */
    padding-left: var(--safe-area-inset-left);
    padding-right: var(--safe-area-inset-right);
}

/* Header and Navigation */
.header {
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: var(--safe-area-inset-top);
    left: 0;
    right: 0;
    z-index: 10000;
    transition: all 0.3s ease;
    /* Prevent header jump on iPhone scroll */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
}

/* Improve button/link touch targets for iPhone */
.nav-links a, .cta-button, .submit-button, .contact-info a, .social-links a {
    /* Minimum touch target size for iPhone */
    min-height: 44px;
    min-width: 44px;
    /* Improve touch response */
    touch-action: manipulation;
    /* Custom tap highlight */
    -webkit-tap-highlight-color: rgba(0,255,255,0.1);
}

/* Form optimizations for iPhone */
.form-group input, .form-group textarea {
    /* Prevent zoom on focus in iPhone Safari */
    font-size: 16px;
    /* Improve form interaction */
    -webkit-appearance: none;
    appearance: none;
    /* Better touch handling */
    touch-action: manipulation;
}

/* Optimize scroll performance */
.hero, .about-section, .solutions, .contact, .footer {
    /* Create stacking context for better performance */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
}

/* iPhone specific optimizations */
@supports (-webkit-touch-callout: none) {
    body {
        font-size: 18px;
        -webkit-font-smoothing: antialiased;
        background-color: #0a0a0a;
        /* Better momentum scrolling */
        -webkit-overflow-scrolling: touch;
    }
    
    .header {
        background: #0a0a0a;
        backdrop-filter: blur(8px);
        /* Prevent header bounce on scroll */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .cta-button, .submit-button {
        min-height: 48px;
        /* Improve button press feedback */
        -webkit-tap-highlight-color: rgba(0,255,255,0.2);
    }
    
    /* Fix iPhone viewport height issues */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        /* Account for safe areas */
        padding-top: calc(8rem + var(--safe-area-inset-top));
    }
    
    /* Improve form inputs on iPhone */
    input, textarea {
        /* Prevent zoom on focus */
        font-size: 16px;
        -webkit-appearance: none;
        border-radius: var(--border-radius);
    }
    
    /* Better touch scrolling */
    section {
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile specific improvements */
@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --scroll-margin: 140px;
    }
    
    section {
        scroll-margin-top: calc(var(--scroll-margin) + 30px);
    }
    
    .solutions {
        scroll-margin-top: calc(var(--scroll-margin) + 40px);
    }
    
    .header {
        height: 80px;
    }
    
    .nav-container {
        flex-direction: column;
        text-align: center;
        padding: 0.3rem 1rem;
        height: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-bottom: 0.2rem;
    }

    .logo h1 {
        font-size: 1.4rem;
        margin: 0;
    }

    .nav-links {
        gap: 0.2rem;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        margin: 0;
    }
    
    .nav-links a {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
        min-width: 44px;
        min-height: 32px;
        border-radius: 8px;
        flex: 1;
        max-width: 70px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        padding-top: calc(80px + 2rem);
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .about p {
        font-size: 1rem;
    }

    .contact-info {
        gap: 0.8rem;
    }
    
    .contact-info a {
        font-size: 1rem;
    }

    .site-logo {
        height: 42px;
        margin-right: 8px;
    }

    html {
        scroll-padding-top: 180px;
    }

    body {
        font-size: 16px;
        text-size-adjust: none;
        -webkit-text-size-adjust: none;
    }
    
    .nav-links a, .cta-button, .submit-button {
        min-height: 44px;
        font-size: 1rem;
        -webkit-tap-highlight-color: rgba(0,255,255,0.15);
    }
    
    .hero {
        height: 100vh;
        height: 100dvh;
        min-height: 600px;
    }
    
    .form-group input, .form-group textarea {
        font-size: 16px;
        padding: 1.2rem;
        -webkit-appearance: none;
        appearance: none;
    }

    section {
        scroll-margin-top: 180px;
    }
}

/* Ultra-wide iPhone (iPhone 14 Pro Max, etc.) */
@media (max-width: 430px) {
    .nav-links a {
        font-size: 0.75rem;
        padding: 0.2rem 0.2rem;
        min-width: 36px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 1rem 2rem;
    }
}

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

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo h1 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    transition: all 0.3s ease;
}

.logo-image {
    height: 56px;
    max-width: 56px;
    width: auto;
    margin-right: 0.5rem;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(43,157,220,0.12);
    background: #18181b;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.3s;
}

.logo:hover .logo-image {
    transform: rotate(5deg) scale(1.1);
}

@media (max-width: 600px) {
    .logo-image {
        height: 44px;
        max-width: 44px;
    }
}

/* Main Content Sections */
main {
    position: relative;
    z-index: 1;
    padding-top: var(--header-height);
}

/* Hero Section */
.hero {
    background: var(--matte-bg);
    color: var(--text-color);
    padding: 10rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-background, .gradient-overlay {
    display: none;
}

.animated-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at 20% 50%, rgba(43, 157, 220, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(105, 201, 240, 0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-color-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 32px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    min-height: 44px;
    font-size: 1.1rem;
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #2b9ddc, #69c9f0);
    box-shadow: var(--shadow-hover);
}

/* About Section Styles */
.about-section {
    padding: 64px 16px;
    margin: 60px 0;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.about-section::before,
.about-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 224, 255, 0.2), 
        transparent
    );
}

.about-section::before {
    top: 0;
}

.about-section::after {
    bottom: 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 0.5fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    position: relative;
    z-index: 2;
}

.section-title, .about-section h2, .solutions h2, .contact h2 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 60px;
    height: 2px;
    background: #00e0ff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(224, 224, 224, 0.9);
    margin-bottom: 1.5rem;
}

.features-list {
    margin: 3rem 0;
    text-align: left;
}

.features-list h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.features-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

.features-list li {
    background: #16181c;
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.features-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.feature-icon {
    background: #10131a;
    border: 2px solid var(--accent-color);
}

.feature-icon i {
    color: var(--primary-color);
}

.feature-text {
    flex: 1;
}

.feature-text strong {
    color: #00e0ff;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.closing-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    border-left: 3px solid #00e0ff;
    padding-left: 1.5rem;
    margin-top: 2rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icons {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 224, 255, 0.1);
}

.tech-icons i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tech-icons i:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Responsive styles for About section */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        display: none;
    }

    .features-list ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --scroll-margin: 130px;
    }
    
    section {
        scroll-margin-top: calc(var(--scroll-margin) + 20px);
    }
    
    .solutions {
        scroll-margin-top: calc(var(--scroll-margin) + 30px);
    }
    
    .hero h2 {
        font-size: 2rem;
    }

    .nav-links a {
        margin: 0 0.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .site-logo {
        height: 36px;
        margin-right: 6px;
    }
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-radius: var(--border-radius);
    transition: color 0.3s, background 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    background: rgba(43,157,220,0.08);
}

.nav-links a::after {
    background: var(--secondary-color);
}

/* Active state for navigation links */
.nav-links a.active,
.nav-links a:active {
    color: #00e0ff;
}

.nav-links a.active::after {
    width: 100%;
}

/* Solutions Section */
.solutions {
    padding: 8rem 2rem;
    position: relative;
    isolation: isolate;
    background-color: rgba(10, 25, 48, 0.5);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.solution-card {
    background: #16181c;
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.card-icon {
    background: #10131a;
}

.card-icon i {
    color: var(--primary-color);
}

.solution-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.solution-card p {
    color: rgba(224, 224, 224, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    position: relative;
    isolation: isolate;
    background-color: #18181b;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #10131a;
    color: var(--text-color);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    min-height: 44px;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-color-light);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 157, 220, 0.18);
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    transform: translateY(-2.5rem);
    font-size: 0.8rem;
    color: var(--primary-color);
}

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

.submit-button {
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 32px;
    min-height: 44px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: none;
}

.submit-button:hover {
    background: linear-gradient(135deg, #2b9ddc, #69c9f0);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.contact-info {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.contact-info a i {
    font-size: 1rem;
}

/* Footer */
.footer {
    background: #18181b;
    color: var(--text-color-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 1.5rem;
    color: rgba(224, 224, 224, 0.8);
}

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

.contact-details a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.contact-details i {
    color: var(--primary-color);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(224, 224, 224, 0.6);
}

/* Animations */
.animate-on-load, .animate-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.7s cubic-bezier(.4,0,.2,1) forwards;
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@supports (-webkit-touch-callout: none) {
    body {
        font-size: 18px;
        -webkit-font-smoothing: antialiased;
        background-color: #0a0a0a;
    }
    .header {
        background: #0a0a0a;
        backdrop-filter: blur(8px);
    }
    .cta-button, .submit-button {
        min-height: 48px;
    }
}

/* Section common styles */
section {
    scroll-margin-top: calc(var(--scroll-margin) + 20px);
    position: relative;
    width: 100%;
}

/* Responsive Design */
@media (min-width: 1200px) {
    .site-logo {
        height: 52px;
    }
}

@media (max-width: 480px) {
    :root {
        --scroll-margin: 130px;
    }
    
    section {
        scroll-margin-top: calc(var(--scroll-margin) + 20px);
    }
    
    .solutions {
        scroll-margin-top: calc(var(--scroll-margin) + 30px);
    }
    
    .hero h2 {
        font-size: 2rem;
    }

    .nav-links a {
        margin: 0 0.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .site-logo {
        height: 36px;
        margin-right: 6px;
    }
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-radius: var(--border-radius);
    transition: color 0.3s, background 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    background: rgba(43,157,220,0.08);
}

.nav-links a::after {
    background: var(--secondary-color);
}

/* Active state for navigation links */
.nav-links a.active,
.nav-links a:active {
    color: #00e0ff;
} 