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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Clear any floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #1e293b;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: #64748b;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-color: #1e40af;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1e40af;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.2);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

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

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    width: 64px;
    height: 64px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-align: center;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

/* Services Overview */
.services-overview {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .card-image {
    transform: scale(1.05);
}

.service-content {
    padding: 32px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: #1e40af;
    flex-shrink: 0;
}

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

.service-card p {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Content Layout Sections */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 0;
}

.content-layout.reverse {
    direction: rtl;
}

.content-layout.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1e293b;
    line-height: 1.2;
}

.content-text p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

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

.feature-list li {
    padding: 8px 0;
    padding-left: 32px;
    position: relative;
    color: #475569;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0d9488;
    font-weight: bold;
    font-size: 1.2rem;
}

.content-image {
    position: relative;
}

.feature-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Section Backgrounds */
.risk-assessment {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

.network-architecture {
    padding: 80px 0;
    background-color: #f8fafc;
    position: relative;
    z-index: 1;
}

.corporate-security {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

/* Security Features */
.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

.feature-image-container {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.feature-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-image {
    transform: scale(1.05);
}

.feature-card-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: #1e40af;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Home Network */
.home-network {
    padding: 80px 0;
    background-color: #f8fafc;
    position: relative;
    z-index: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    width: 32px;
    height: 32px;
    color: #0d9488;
    flex-shrink: 0;
}

.benefit-item span {
    font-weight: 500;
    color: #1e293b;
}

/* Products Section */
.products {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    z-index: 1;
}

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

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 550px;
}

.product-card.featured {
    border-color: #ea580c;
    transform: scale(1.02);
    box-shadow: 0 16px 50px rgba(234, 88, 12, 0.2);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.product-image {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image {
    transform: scale(1.05);
}

.product-header {
    padding: 32px 32px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    flex-shrink: 0;
}

.product-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #1e40af;
}

.product-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ea580c;
}

.product-features {
    padding: 0 32px 24px;
    flex-grow: 1;
}

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

.product-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: #475569;
}

.product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0d9488;
    font-weight: bold;
}

.product-btn {
    margin: 0 32px 32px;
    width: calc(100% - 64px);
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.reason-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.reason-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

.reason-image {
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.reason-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reason-card:hover .reason-card-image {
    transform: scale(1.05);
}

.reason-content {
    padding: 32px 24px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reason-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: #1e40af;
    flex-shrink: 0;
}

.reason-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
}

.reason-card p {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Contact Section */
.contact {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    z-index: 1;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.contact-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.8) 100%);
    z-index: 2;
}

.contact .container {
    position: relative;
    z-index: 3;
}

.contact .section-title,
.contact .section-subtitle {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: #1e40af;
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.contact-details a,
.contact-details p {
    color: #64748b;
    text-decoration: none;
    line-height: 1.5;
    margin: 0;
}

.contact-details a:hover {
    color: #1e40af;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 48px 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    position: relative;
}

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

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #60a5fa;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 4px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .content-layout.reverse {
        direction: ltr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .security-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-card.featured {
        transform: none;
    }
    
    .product-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .brand-name {
        font-size: 1.75rem;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .service-card,
    .feature-card,
    .product-card,
    .reason-card {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 48px;
        height: 48px;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .content-text h2 {
        font-size: 1.75rem;
    }
    
    .hero-cta {
        gap: 12px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .service-content,
    .feature-card-content,
    .reason-content {
        padding: 24px;
    }
    
    .product-header {
        padding: 24px 24px 20px;
    }
    
    .product-features {
        padding: 0 24px 20px;
    }
    
    .product-btn {
        margin: 0 24px 24px;
        width: calc(100% - 48px);
    }
    
    .contact-item {
        padding: 24px 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .services-grid,
    .security-features,
    .products-grid,
    .reasons-grid {
        gap: 20px;
    }
}

/* Ensure no overlapping */
section {
    position: relative;
    clear: both;
    display: block;
    width: 100%;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Ensure images don't break layout */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid fallback for older browsers */
@supports not (display: grid) {
    .services-grid,
    .security-features,
    .products-grid,
    .reasons-grid,
    .benefits-grid,
    .contact-info {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .service-card,
    .feature-card,
    .product-card,
    .reason-card,
    .benefit-item,
    .contact-item {
        flex: 1 1 300px;
        min-width: 300px;
    }
}