:root {
    --primary-color: #00a8ff;
    --secondary-color: #192a56;
    --accent-color: #fbc531;
    --text-light: #f5f6fa;
    --text-dark: #2f3640;
    --bg-light: #ffffff;
    --bg-dark: #0c2461;
    --card-bg: #ffffff;
    --nav-bg: #0c2461;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --bg-light: #121212;
    --text-dark: #f5f6fa;
    --card-bg: #1e1e1e;
    --bg-dark: #000000;
    --nav-bg: #000000;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    background: var(--nav-bg);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.logo span {
    color: var(--primary-color);
}

#theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 1rem;
    padding: 8px 12px;
    border-radius: 50%;
    transition: var(--transition);
    background: rgba(255,255,255,0.1);
}

#theme-toggle:hover {
    background: var(--primary-color);
    transform: rotate(360deg);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3799 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    color: white;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
}

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

.hero-content .highlight {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0,168,255,0.5);
}

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

.hero-btns .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    margin-right: 1rem;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background: #0088cc;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,168,255,0.4);
}

.btn.secondary {
    border: 2px solid white;
    color: white;
}

.btn.secondary:hover {
    background: white;
    color: var(--bg-dark);
    transform: translateY(-5px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.floating-icons {
    font-size: 4.5rem;
    color: var(--primary-color);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--bg-light);
    transition: var(--transition);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-10px) rotate(2deg);
    border-bottom: 5px solid var(--primary-color);
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,168,255,0.1);
}

.service-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,168,255,0.2);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

/* Projects Section */
.projects {
    padding: 8rem 0;
    background: var(--bg-dark);
    color: white;
}

.projects .section-title {
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-15px);
}

.project-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img img {
    transform: scale(1.15) rotate(2deg);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-dark);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    width: 50px;
}

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

.contact-form input, .contact-form textarea {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0,168,255,0.1);
    border-radius: 10px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-dark);
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0,168,255,0.2);
}

.contact-form button {
    cursor: pointer;
    border: none;
}

/* Footer */
footer {
    background: var(--nav-bg);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
    transition: var(--transition);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 60px;
}

.socials a {
    color: white;
    font-size: 1.5rem;
    margin-left: 1.5rem;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        height: auto;
        padding-bottom: 50px;
    }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-image { margin-top: 4rem; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--nav-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    .nav-links.nav-active {
        transform: translateX(0%);
    }
    .nav-links li {
        margin: 1.5rem 0;
    }
    .burger { display: block; }
}
