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

:root {
    /* Colors - Cryogenic Theme */
    --primary-blue: #4FC3F7;
    --secondary-blue: #0288D1;
    --dark-blue: #01579B;
    --ice-blue: #B3E5FC;
    --bg-primary: #0A0E27;
    --bg-secondary: #0F1535;
    --bg-card: #1A1F3A;
    --text-primary: #E8F4F8;
    --text-secondary: #B0BEC5;
    --border-color: rgba(79, 195, 247, 0.2);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 20px;

    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 20px 0;
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    list-style: none;
    list-style-type: none;
    gap: 40px;
    align-items: center;
}

.nav-links li {
    list-style: none;
    list-style-type: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 15px;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: var(--primary-blue);
}

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

.btn-outline:hover {
    border-color: var(--primary-blue);
    background: rgba(79, 195, 247, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(79, 195, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--ice-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

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

.hero-visual {
    position: relative;
    height: 500px;
}

.server-visualization {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
}

.server-visualization svg {
    filter: drop-shadow(0 0 30px rgba(79, 195, 247, 0.4));
    max-width: 100%;
    height: auto;
}

.server-unit {
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Sections */
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 60px);
    color: var(--text-primary);
    line-height: 1.2;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 40px rgba(79, 195, 247, 0.2);
}

.service-icon {
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: clamp(19px, 2.2vw, 22px);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.3;
}

.service-card p {
    color: var(--text-secondary);
    font-size: clamp(14px, 1.5vw, 15px);
    line-height: 1.7;
}

.services-pricing-note {
    max-width: 800px;
    margin: 50px auto 0;
    text-align: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.08), rgba(2, 136, 209, 0.08));
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.services-pricing-note p {
    color: var(--text-secondary);
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.7;
    margin: 0;
}

/* Projects Section */
.projects {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.project-featured {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 50px;
    max-width: 850px;
    margin: 0 auto;
}

.project-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.project-content h3 {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
    line-height: 1.2;
}

.project-description {
    font-size: clamp(15px, 1.6vw, 16px);
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 720px;
}

.project-features {
    list-style: none;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
}

.project-features li {
    padding: 6px 0;
    padding-left: 26px;
    position: relative;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 18px;
}

.project-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.contact-simple {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    font-size: clamp(16px, 1.8vw, 18px);
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.2);
}

.contact-icon {
    font-size: 32px;
}

.contact-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

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

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 50px 20px 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-company-info {
    max-width: 600px;
}

.company-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.company-details {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.company-address {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.footer-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        gap: 40px;
    }

    .hero-visual {
        height: 400px;
    }

    .project-featured {
        max-width: 100%;
        padding: 35px 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 20px;
    }

    .container {
        padding: 0 20px;
        max-width: 100%;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-visual {
        display: none;
    }

    .hero {
        min-height: 100vh;
        padding: 120px 0 60px;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .hero .container {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 38px;
        word-wrap: break-word;
        line-height: 1.2;
        margin-bottom: 20px;
        letter-spacing: -0.02em;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 19px;
        line-height: 1.5;
        margin-bottom: 32px;
        opacity: 0.95;
        text-align: center;
    }

    .section-title {
        font-size: 34px;
        margin-bottom: 40px;
        line-height: 1.2;
    }

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

    .service-card {
        padding: 38px 30px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 14px;
    }

    .service-card h3 {
        font-size: 21px;
        margin-bottom: 14px;
        line-height: 1.3;
    }

    .service-card p {
        font-size: 15px;
        line-height: 1.65;
        opacity: 0.95;
    }

    .service-icon {
        margin-bottom: 20px;
    }

    .service-icon svg {
        width: 52px;
        height: 52px;
    }

    .services-pricing-note {
        padding: 20px 24px;
        margin-top: 40px;
    }

    .services-pricing-note p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 14px;
        padding: 0 20px;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 15px 28px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 10px;
    }

    .project-featured {
        padding: 40px 30px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .project-content h3 {
        font-size: 30px;
        word-wrap: break-word;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .project-description {
        font-size: 16px;
        margin-bottom: 26px;
        line-height: 1.65;
    }

    .project-features {
        gap: 10px 20px;
        margin-bottom: 30px;
    }

    .project-features li {
        font-size: 15px;
        word-wrap: break-word;
        line-height: 1.5;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(26, 31, 58, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transition: right 0.3s ease-in-out;
        border-left: 1px solid var(--border-color);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        text-align: left;
        border-radius: 8px;
        transition: var(--transition-smooth);
    }

    .nav-links a:hover {
        background: rgba(79, 195, 247, 0.1);
    }

    .nav-links .btn-secondary {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .contact-methods {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        width: 100%;
    }

    .contact-item {
        width: 100%;
        box-sizing: border-box;
    }

    .footer-main {
        flex-direction: column;
        gap: 30px;
    }

    .footer-company-info {
        text-align: left;
    }

    .footer {
        padding: 40px 20px 25px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 50px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        min-height: 100vh;
        padding: 100px 0 50px;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .hero .container {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 0 8px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 18px;
        line-height: 1.2;
        letter-spacing: -0.02em;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 28px;
        line-height: 1.5;
        opacity: 0.9;
        text-align: center;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
        line-height: 1.2;
    }

    .service-card {
        padding: 28px 22px;
        width: 100%;
    }

    .service-card h3 {
        font-size: 19px;
        line-height: 1.3;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .services-pricing-note {
        padding: 18px 20px;
        margin-top: 32px;
    }

    .services-pricing-note p {
        font-size: 14px;
        line-height: 1.6;
    }

    .project-featured {
        padding: 30px 22px;
        width: 100%;
        max-width: 100%;
    }

    .project-badge {
        font-size: 11px;
        padding: 5px 14px;
        margin-bottom: 12px;
    }

    .project-content h3 {
        font-size: 24px;
        margin-bottom: 14px;
        line-height: 1.25;
    }

    .project-description {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.6;
        max-width: 100%;
    }

    .project-features {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 24px;
    }

    .project-features li {
        font-size: 14px;
        padding: 5px 0;
        padding-left: 24px;
        line-height: 1.5;
    }

    .project-features li::before {
        font-size: 16px;
        left: 0;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 13px 24px;
        font-size: 15px;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .contact-description {
        font-size: 17px;
        margin-bottom: 40px;
        line-height: 1.6;
        padding: 0 10px;
    }

    .contact-item {
        padding: 22px 24px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
        width: 100%;
        border-radius: 14px;
    }

    .contact-icon {
        font-size: 36px;
    }

    .footer {
        padding: 30px 16px 20px;
        width: 100%;
    }

    .footer-logo {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .company-name {
        font-size: 14px;
    }

    .company-details {
        font-size: 11px;
        word-wrap: break-word;
    }
}

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

    .hero {
        min-height: 100vh;
        padding: 90px 0 40px;
        display: flex;
        align-items: center;
    }

    .hero .container {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 0 4px;
    }

    .hero-title {
        font-size: 27px;
        line-height: 1.2;
        margin-bottom: 16px;
        letter-spacing: -0.015em;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 24px;
        line-height: 1.45;
        opacity: 0.9;
        text-align: center;
    }

    .section-title {
        font-size: 22px;
    }

    .project-featured {
        padding: 20px 14px;
    }

    .project-content h3 {
        font-size: 20px;
    }

    .project-description {
        font-size: 13px;
    }

    .project-features li {
        font-size: 12px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 10px 18px;
        font-size: 13px;
    }
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .service-card,
    .project-featured,
    .contact-item,
    .feature-card {
        will-change: transform;
    }

    .nav-links {
        will-change: right;
    }
}

/* Selection */
::selection {
    background: var(--primary-blue);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .contact-item:hover,
    .feature-card:hover {
        transform: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover {
        transform: none;
    }

    .service-card:active,
    .contact-item:active,
    .feature-card:active {
        transform: scale(0.98);
    }

    .btn-primary:active,
    .btn-secondary:active,
    .btn-outline:active {
        transform: scale(0.97);
    }
}

/* Improved tap targets for mobile */
@media (max-width: 768px) {
    a, button, .copy-btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links a {
        min-height: 48px;
    }
}
