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

:root {
    --primary-color: #4CAF50;
    --secondary-color: #1a237e;
    --text-color: #333;
    --background-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.cta-button,
.primary-button,
.secondary-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button,
.primary-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
}

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

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

.secondary-button:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

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

.logo-image {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-links a:not(.cta-button):hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding-top: calc(60px + var(--spacing-lg));
    padding-left: 35px; 
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: var(--spacing-md);
}

.hero-visual {
    flex: 1;
    position: relative;
    min-height: 500px;
    z-index: 1;
}

.network-visualization {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../images/Fractallattice_LandingPage.jpg') center/contain no-repeat;
}

.cta-group {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* Features Section */
.features {
    position: relative;
    padding: var(--spacing-lg) var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.5);
    /* Fallback background color */
}

.features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    background-image: url('../images/featuresbackground.jpg');
    background-size: 100%;
    background-position: left;
    background-repeat: no-repeat;
    opacity: 0.8; /* Adjust the opacity as needed */
    z-index: -1; /* Ensure the background image stays behind the content */
    filter: blur(4px);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.feature-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    width: 60px;
    height: 60px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.feature-list {
    list-style: none;
    margin-top: var(--spacing-sm);
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: var(--spacing-lg) var(--spacing-md);
    background: #f8f9fa; 
}

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

.about-grid {
    display: flex; /*grid; */
    justify-content: center;
    flex-wrap: wrap;
    /* grid-template-columns: repeat(3, 1fr); */
    gap: 20px;/* var(--spacing-md); */
    margin-top: var(--spacing-lg);
}

.about-stat {
    flex: 1; /* added new  */
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.about-stat:hover {  /* added new  */
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--secondary-color);
    color: white;
}

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

.contact-form {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.contact-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* Footer */
.footer {
    padding: var(--spacing-md);
    background: #f8f9fa;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(60px + var(--spacing-md));
    }

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

    .hero-visual {
        min-height: 300px;
    }

    .cta-group {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

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

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

    .contact-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .about-grid {
        flex-direction: column;
            /* Stacks items vertically on mobile */
        align-items: center;
            /* Centers items horizontally */
    }
    
    .about-stat {
        width: 100%;
            /* Makes each item take full width on mobile */
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-content {
    animation: fadeIn 1s ease-out;
}

.feature-card {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}