@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

:root {
    --bg-color: #1a2332;
    --primary-color: #ffffff;
    --secondary-color: #a8b2c1;
    --accent-color-1: #4FC3F7;
    --accent-color-2: #4dffc3;
    --border-color: #2a3441;
    --card-bg: rgba(42, 52, 65, 0.3);
    --card-border: rgba(79, 195, 247, 0.2);
}

/* General Body Styles */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--primary-color);
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background: transparent;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    width: 75px;
    height: 75px;
    margin-right: 15px;
    animation: bounce 2s ease-in-out;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Main Content Sections */
main {
    padding-top: 2rem;
}

section {
    padding: 5rem 0;
    width: 90%;
    margin: 0 auto;
}

/* Services Section with Wave Background */
.services {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.services::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -25%;
    width: 90%;
    height: 100%;
    background-image: url('wave1.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top right;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
    transform: rotate(180deg);
}

.services::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -25%;
    width: 100%;
    height: 120%;
    background-image: url('wave2.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom left;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

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

.hero::before {
    content: '';
    position: absolute;
    right: -30%;
    width: 120%;
    height: 120%;
    background-image: url('wave1.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -30%;
    width: 100%;
    height: 80%;
    z-index: 0;
    pointer-events: none;
    transform: rotate(15deg);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 6rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 550px;
}

.hero-tag {
    color: #4FC3F7;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: brightness(0.9);
}

.cta-button {
    background: transparent;
    color: #4FC3F7;
    padding: 15px 30px;
    text-decoration: none;
    border: 2px solid #4FC3F7;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.cta-button:hover {
    background: #4FC3F7;
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* Statistics Section */
.stats {
    padding: 3rem 0;
    background: rgba(42, 52, 65, 0.2);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color-1);
    margin: 0 0 0.5rem 0;
}

.stat-item p {
    font-size: 1rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 500;
}

/* Section Tags */
.section-tag {
    color: var(--accent-color-1);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
}

/* General Section Titles */
.services h2, .opensource h2, .about h2, .contact h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Card Layouts */
.service-cards, .repo-cards {
    display: grid;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.service-cards {
    grid-template-columns: repeat(2, 1fr);
}

.repo-cards {
    grid-template-columns: repeat(3, 1fr);
}

/* Modern Card Style */
.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(79, 195, 247, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color-1);
    box-shadow: 0 0 30px rgba(79, 195, 247, 0.3);
    background: rgba(42, 52, 65, 0.5);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.card p {
    color: var(--secondary-color);
}

.repo-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 24px;
    background: var(--border-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.repo-link:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* About Section */
.about {
    background: transparent;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -30%;
    width: 100%;
    height: 140%;
    background-image: url('wave2.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    transform: rotate(180deg);
}

.about::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -25%;
    width: 80%;
    height: 100%;
    background-image: url('wave2.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom left;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    transform: rotate(-10deg);
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--secondary-color);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact .contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact .contact-header p {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--secondary-color);
}

.contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact input, .contact textarea {
    padding: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--primary-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact input:focus, .contact textarea:focus {
    outline: none;
    border-color: var(--accent-color-2);
    box-shadow: 0 0 10px rgba(77, 255, 195, 0.3);
}

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

/* Footer */
footer {
    background: transparent;
    color: var(--secondary-color);
    padding: 4rem 0;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section p {
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .repo-cards {
        grid-template-columns: 1fr;
    }
    .service-cards {
        grid-template-columns: 1fr;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 4rem 0;
        min-height: auto;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        justify-content: center;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-image {
        order: -1;
        max-width: 300px;
    }
    
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .service-cards, .repo-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .hero-container {
        gap: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    h2 {
        font-size: 1.8rem;
    }

    nav {
        padding: 0 1rem;
    }

    .logo span {
        display: none; /* Hide company name on very small screens */
    }
}

/* Open Source Card Button Fix */
.opensource .card p {
    flex-grow: 1;
}

.repo-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.repo-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color-2);
}

.repo-card, .repo-card:hover {
    text-decoration: none;
    color: inherit;
}
