/* Global Styles */
:root {
    --primary: #6c63ff;
    --secondary: #2d2d3a;
    --dark: #070e1e;
    --light: #f5f5f7;
    --accent: #ff6b6b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

/* Header Styles */
header {
    background-color: var(--dark);
    position: fixed;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(rgba(26, 26, 35, 0.85), rgba(26, 26, 35, 0.9)), 
                url('images/photo-1639762681057-408e52192e55.jpeg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-animation {
    flex: 1;
    position: relative;
    height: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

/* Services Section */
.services {
    padding: 5rem 5%;
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/dot-grid.webp') repeat;
    opacity: 0.05;
    z-index: 0;
}

.services h2 {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.services-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(108, 99, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
}

.service-card.animate {
    transform: translateY(0);
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    opacity: 0.8;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services {
        padding: 3rem 5%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about {
    padding: 5rem 5%;
    display: flex;
    gap: 3rem;
    background: var(--dark) url('images/photo-1552664730-d307ca884978.jpeg') center/cover no-repeat fixed;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 35, 0.85);
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about .lead {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.about p {
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.8;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

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

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

.stat-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.about-image {
    position: relative;
    z-index: 1;
    flex: 1;
    position: relative;
    min-height: 300px;
}

.tech-icons {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    height: 100%;
}

.tech-icons i {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.tech-icons i:nth-child(1) { animation-delay: 0s; }
.tech-icons i:nth-child(2) { animation-delay: 1s; }
.tech-icons i:nth-child(3) { animation-delay: 2s; }
.tech-icons i:nth-child(4) { animation-delay: 3s; }
.tech-icons i:nth-child(5) { animation-delay: 4s; }
.tech-icons i:nth-child(6) { animation-delay: 5s; }

.tech-icons i:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-icons i:hover::after {
    opacity: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); opacity: 0.7; }
}

@media (max-width: 768px) {
    .about {
        flex-direction: column;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .tech-icons {
        position: relative;
        margin-top: 2rem;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    display: flex;
    gap: 3rem;
    background: var(--secondary) url('images/pexels-photo-290595.jpeg') center/cover no-repeat fixed;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 45, 58, 0.85);
    z-index: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-form {
    margin-bottom: 3rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: 0 0.5rem;
    background-color: var(--secondary);
    color: var(--light);
    transition: all 0.3s ease;
    pointer-events: none;
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-1.5rem) translateX(-0.5rem) scale(0.9);
    opacity: 1;
    color: var(--primary);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.map-container {
    flex: 1;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-placeholder {
    display: none;
}

@media (max-width: 768px) {
    .contact {
        flex-direction: column;
    }
    
    .map-container {
        min-height: 300px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
    background-color: var(--light);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background-color: var(--dark);
    padding: 3rem 5% 1rem;
    color: var(--light);
}

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

.footer-logo h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-social h4,
.footer-about h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--light);
    font-size: 1.3rem;
    opacity: 0.7;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
    opacity: 1;
    transform: translateY(-3px);
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 80px;
        height: calc(100vh - 80px);
        width: 50%;
        background-color: var(--secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .burger {
        display: block;
        cursor: pointer;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
