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

:root {
    --primary-blue: #0077BE;
    --crystal-blue: #B0E0E6;
    --tech-gray: #5A5A5A;
    --fresh-green: #32CD32;
    --accent-orange: #FF8C00;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark: #1a1a1a;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Lato', Arial, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--tech-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-blue), #005a8d);
    color: var(--white);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease-out;
}

.cookie-consent.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-content a {
    color: var(--crystal-blue);
    text-decoration: underline;
}

.btn-accept {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-accept:hover {
    background: #ff9d1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--crystal-blue) 50%, var(--fresh-green) 100%);
    opacity: 0.1;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0,50 Q25,30 50,50 T100,50" stroke="%230077BE" stroke-width="0.5" fill="none" opacity="0.1"/></svg>');
    animation: flow 20s linear infinite;
}

@keyframes flow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100px);
    }
}

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

.hero-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--tech-gray);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #005a8d;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 119, 190, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 119, 190, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

.stat-number {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--tech-gray);
    font-size: 14px;
}

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

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

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

.section-title {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--tech-gray);
}

/* Technologies Section */
.technologies {
    background: var(--light-gray);
}

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

.tech-card {
    background: var(--white);
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--fresh-green));
    transform: scaleX(0);
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 119, 190, 0.2);
}

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

.tech-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.tech-icon svg {
    width: 100%;
    height: 100%;
}

.tech-title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.tech-description {
    color: var(--tech-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.tech-features {
    list-style: none;
}

.tech-features li {
    padding: 8px 0;
    color: var(--tech-gray);
    position: relative;
    padding-left: 25px;
}

.tech-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--fresh-green);
    font-weight: bold;
}

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

.app-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.app-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 119, 190, 0.2);
}

.app-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.app-card:hover .app-image img {
    transform: scale(1.1);
}

.app-content {
    padding: 25px;
}

.app-content h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.app-content p {
    color: var(--tech-gray);
    line-height: 1.7;
}

/* Solutions Section */
.solutions {
    background: var(--light-gray);
}

.solutions-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.solution-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.solution-item.reverse {
    direction: rtl;
}

.solution-item.reverse > * {
    direction: ltr;
}

.solution-visual {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.solution-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.solution-item:hover .solution-visual img {
    transform: scale(1.05);
}

.solution-info h3 {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.solution-info p {
    color: var(--tech-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.solution-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.solution-features li {
    color: var(--tech-gray);
    position: relative;
    padding-left: 25px;
}

.solution-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

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

.benefit-card {
    background: var(--white);
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 119, 190, 0.2);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-card h3 {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--tech-gray);
    line-height: 1.7;
}

/* Process Section */
.process {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #005a8d 100%);
    color: var(--white);
}

.process .section-title,
.process .section-subtitle {
    color: var(--white);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.process-step {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.step-number {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 15px;
    opacity: 0.8;
}

.step-content h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
}

/* Comparison Table */
.comparison {
    background: var(--light-gray);
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table {
    width: 100%;
    background: var(--white);
    border-collapse: collapse;
}

.comparison-table thead {
    background: var(--primary-blue);
    color: var(--white);
}

.comparison-table th,
.comparison-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--crystal-blue);
}

.comparison-table th {
    font-family: var(--font-primary);
    font-weight: 600;
}

.comparison-table tbody tr {
    transition: var(--transition);
}

.comparison-table tbody tr:hover {
    background: rgba(0, 119, 190, 0.05);
}

/* Calculator Section */
.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--crystal-blue);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.calculate-btn {
    width: 100%;
    margin-top: 10px;
}

.calculator-results {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-placeholder {
    text-align: center;
}

.result-placeholder svg {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.result-placeholder p {
    color: var(--tech-gray);
}

.result-content h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.result-item {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    font-weight: 600;
    color: var(--tech-gray);
}

.result-value {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Visualization Section */
.visualization {
    background: var(--light-gray);
}

.visualization-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.viz-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.diagram-stage {
    text-align: center;
    min-width: 120px;
}

.stage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.stage-icon svg {
    width: 100%;
    height: 100%;
}

.diagram-stage h4 {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.diagram-stage p {
    font-size: 13px;
    color: var(--tech-gray);
}

.flow-arrow {
    font-size: 32px;
    color: var(--accent-orange);
    font-weight: bold;
}

.viz-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.viz-image img {
    width: 100%;
    height: auto;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.info-content h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.info-content p {
    color: var(--tech-gray);
    line-height: 1.6;
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    font-weight: 400;
}

.checkbox-group a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(50, 205, 50, 0.1);
    color: var(--fresh-green);
    border: 1px solid var(--fresh-green);
    display: block;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid #ff0000;
    display: block;
}

.map-container {
    margin-top: 40px;
}

.map-container h3 {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
}

.footer-description {
    line-height: 1.7;
    opacity: 0.8;
}

.footer-section h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-orange);
    padding-left: 5px;
}

.footer-contact li {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .tech-grid,
    .applications-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-item {
        grid-template-columns: 1fr;
    }
    
    .solution-item.reverse {
        direction: ltr;
    }
    
    .solution-features {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .viz-diagram {
        flex-direction: column;
        padding: 20px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .calculator-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 360px) and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .hero {
        min-height: 500px;
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
}

/* Animations */
@keyframes waterFlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.water-animation {
    position: relative;
    overflow: hidden;
}

.water-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(176, 224, 230, 0.3), transparent);
    animation: waterFlow 3s ease-in-out infinite;
}
