/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

:root {
    --primary-color: #1e88e5;
    --secondary-color: #ff6b35;
    --accent-color: #ff8c42;
    --dark-bg: #0a0e27;
    --light-bg: #ffffff;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --gray-light: #f8f9fa;
    --gray-dark: #6c757d;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f1630 100%);
    overflow-x: hidden;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 136, 229, 0.1);
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    height: 50px;
    width: 50px;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-text {
    color: var(--text-light);
}

.logo-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
}

.cta-nav::after {
    display: none;
}

.cta-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 136, 229, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 150px 20px 100px;
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        rgba(30, 136, 229, 0.05) 0%,
        rgba(255, 107, 53, 0.05) 100%
    );
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    box-shadow: 0 15px 35px rgba(30, 136, 229, 0.3);
    transform: translateY(-4px);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

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

.floating-box {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 30px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-box-2 {
    width: 250px;
    height: 250px;
    right: 50px;
    top: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    animation-delay: 1s;
}

.floating-box-3 {
    width: 200px;
    height: 200px;
    right: 150px;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    animation-delay: 2s;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-delayed {
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delayed-2 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    padding: 100px 20px;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-dark);
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:nth-child(1) {
    border-top-color: #1e88e5;
}

.service-card:nth-child(2) {
    border-top-color: #ff6b35;
}

.service-card:nth-child(3) {
    border-top-color: #ff8c42;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.video-icon {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
}

.app-icon {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.branding-icon {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
}

.features-list li {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--dark-bg), #0f1630);
}

.portfolio .section-header h2 {
    color: var(--text-light);
}

.portfolio .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

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

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 0.95rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 100px 20px;
    background: var(--light-bg);
}

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

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

.about-text p {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

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

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-dark);
    font-weight: 500;
}

.team-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.team-member {
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    opacity: 0.1;
}

.team-member:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
}

.about-icon {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(30, 136, 229, 0.2));
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-section ul li {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-5px);
}

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

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: revealOnScroll 0.8s ease forwards;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 15, 35, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .cta-nav {
        margin: 1rem auto;
        display: inline-block;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-8px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-8px, -6px);
    }

    .logo-icon {
        height: 40px;
        width: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 100px 20px 60px;
        gap: 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .services {
        padding: 60px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .portfolio {
        padding: 60px 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about {
        padding: 60px 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-icon {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-icon {
        height: 35px;
        width: 35px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .hero {
        padding: 90px 15px 50px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .section-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon svg {
        width: 50px;
        height: 50px;
    }

    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    .portfolio-item {
        height: 250px;
    }

    .portfolio-overlay h3 {
        font-size: 1.25rem;
    }

    .portfolio-overlay p {
        font-size: 0.85rem;
    }

    .about-text h2 {
        font-size: 1.75rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .stat h4 {
        font-size: 2rem;
    }

    .stat p {
        font-size: 0.9rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    .footer-section h3 {
        font-size: 1.25rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .features-list li {
        font-size: 0.9rem;
    }
}
