/* style.css */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #0ea5e9;
    --dark-color: #0f172a;
    --dark-light: #1e293b;
    --gray-color: #64748b;
    --light-color: #f1f5f9;
    --white-color: #ffffff;
    --success-color: #10b981;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white-color);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo__icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.nav__logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 100px 0;
    background: var(--gradient);
    color: var(--white-color);
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--white-color);
    color: var(--primary-color);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--secondary {
    background: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.btn--secondary:hover {
    background: var(--white-color);
    color: var(--primary-color);
}

.btn--full {
    width: 100%;
}

/* Tech Illustration with animated icons */
.tech-illustration {
    position: relative;
    width: 100%;
    height: 400px;
}

.tech-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tech-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white-color);
}

.tech-icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.tech-icon-2 {
    top: 15%;
    right: 15%;
    animation-delay: 1s;
}

.tech-icon-3 {
    top: 50%;
    left: 5%;
    animation-delay: 2s;
}

.tech-icon-4 {
    top: 45%;
    right: 10%;
    animation-delay: 3s;
}

.tech-icon-5 {
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
}

.tech-icon-6 {
    bottom: 10%;
    right: 20%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light-color);
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section__subtitle {
    font-size: 1.25rem;
    color: var(--gray-color);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service__card {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service__icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service__icon svg {
    width: 32px;
    height: 32px;
    color: var(--white-color);
}

.service__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service__description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.service__list {
    list-style: none;
}

.service__list li {
    padding: 0.5rem 0;
    color: var(--gray-color);
    position: relative;
    padding-left: 1.5rem;
}

.service__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__text p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
    font-size: 1.1rem;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat__label {
    color: var(--gray-color);
}

/* Tech Grid in About Section */
.about__tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.tech-grid-item {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    animation: pulse 4s ease-in-out infinite;
}

.tech-grid-item:nth-child(1) {
    animation-delay: 0s;
}

.tech-grid-item:nth-child(2) {
    animation-delay: 1s;
}

.tech-grid-item:nth-child(3) {
    animation-delay: 2s;
}

.tech-grid-item:nth-child(4) {
    animation-delay: 3s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.tech-grid-item:hover {
    transform: scale(1.1) rotate(5deg);
}

.tech-grid-item svg {
    width: 60px;
    height: 60px;
    color: var(--white-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--light-color);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact__icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact__icon svg {
    width: 24px;
    height: 24px;
    color: var(--white-color);
}

.contact__item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact__item p {
    color: var(--gray-color);
}

/* Form Styles */
.contact__form {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form__group {
    position: relative;
    margin-bottom: 2rem;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form__group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--gray-color);
    transition: 0.3s;
    pointer-events: none;
}

.form__group input:focus + label,
.form__group input:not(:placeholder-shown) + label,
.form__group textarea:focus + label,
.form__group textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.875rem;
    background: var(--white-color);
    padding: 0 0.5rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 4rem 0 2rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer__section h3,
.footer__section h4 {
    margin-bottom: 1rem;
}

.footer__section p {
    color: var(--gray-color);
}

.footer__section ul {
    list-style: none;
}

.footer__section ul li {
    margin-bottom: 0.5rem;
}

.footer__section a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer__section a:hover {
    color: var(--primary-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-light);
    color: var(--gray-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: left 0.3s;
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__container,
    .about__content,
    .contact__content {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 2rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .about__stats {
        grid-template-columns: 1fr;
    }

    .tech-illustration {
        height: 300px;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
    }

    .tech-icon svg {
        width: 30px;
        height: 30px;
    }
}
