/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Colors */
    --color-primary: #3366FF;
    --color-primary-dark: #2952CC;
    --color-secondary: #FF6B35;
    --color-white: #FFFFFF;
    --color-light: #F8F9FA;
    
    /* Gradient Colors */
    --gradient-start: #4A90E2;
    --gradient-mid: #9B59B6;
    --gradient-end: #E91E8C;
    
    /* Spacing */
    --header-height: 85px;
    --container-max-width: 1200px;
    --section-padding: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #3025cf;
    padding: 0 24px;
}

.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.logo-text {
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: url('../assets/gradient-main-bg.webp') center top / cover no-repeat;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--color-white));
}

.hero-content {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 16px;
    margin-top: 30px;
    letter-spacing: 0.5px;
}

.hero-title {
    color: var(--color-white);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3.6rem, 8.4vw, 6rem);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.5;
    letter-spacing: 0.25px;
    font-weight: 300;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-container {
    position: relative;
    max-width: 750px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.hero-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

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

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.05);
    animation: floatElement 4s ease-in-out infinite;
}

.floating-element svg {
    width: 24px;
    height: 24px;
    color: var(--gradient-mid);
}

.floating-element-1 {
    top: 20%;
    right: -10px;
    animation-delay: 0s;
}

.floating-element-2 {
    top: 50%;
    right: -30px;
    animation-delay: 1s;
}

.floating-element-3 {
    top: 70%;
    right: -10px;
    animation-delay: 2s;
}

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

.hero-subtitle {
    color: #555;
    font-size: 1rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
}

.btn-secondary:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

/* ===================================
   Stack Section
   =================================== */
.stack {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 60px;
    background: url('../assets/stack.png') center center / cover no-repeat;
    background-color: #1a1a2e;
    border-radius: 20px;
}

.stack-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    text-align: center;
}

.stack-tagline {
    color: #9B8ACB;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.stack-title {
    color: var(--color-white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

.stack-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.stack-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.stack-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

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

.stack-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.stack-icon img.icon-invert {
    filter: invert(1);
}

.stack-icon span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-stack {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-stack:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-stack svg {
    width: 18px;
    height: 18px;
}

/* ===================================
   Services Section
   =================================== */
.services {
    position: relative;
    padding: 100px 24px;
    background: var(--color-white);
    overflow: hidden;
}

.services-bg-circle {
    position: absolute;
    top: -100px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: url('../assets/service.png') center center / contain no-repeat;
    opacity: 0.8;
    pointer-events: none;
}

.services-content {
    position: relative;
    max-width: var(--container-max-width);
    margin: 0 auto;
    z-index: 1;
}

.services-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--color-white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

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

.service-category {
    display: inline-block;
    color: #0066FF;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.service-card .service-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #0066FF;
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-service:hover {
    background: #0052CC;
    transform: translateY(-2px);
}

/* ===================================
   About & Contact Section
   =================================== */
.about-contact {
    position: relative;
    padding: 100px 24px;
    background: var(--color-white);
    overflow: hidden;
}

.about-contact-bg-circle {
    position: absolute;
    top: 50%;
    right: -150px;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: url('../assets/service.png') center center / contain no-repeat;
    opacity: 0.8;
    pointer-events: none;
}

.about-contact-container {
    position: relative;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    z-index: 1;
}

.about-side {
    padding-right: 40px;
}

.about-tagline {
    color: #9B8ACB;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
    line-height: 1.2;
}

.about-description {
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.about-story {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.about-story p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-story p:last-child {
    margin-bottom: 0;
}

/* Contact Form */
.contact-side {
    background: url('../assets/wave.png') center center / cover no-repeat;
    background-color: #f5f0ff;
    padding: 50px;
    border-radius: 16px;
}

.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group .required {
    color: #E91E8C;
    font-size: 0.7rem;
    font-weight: 400;
    margin-left: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #9B8ACB;
    background: var(--color-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-disclaimer {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.5;
}

.form-disclaimer a {
    color: #9B8ACB;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 16px 32px;
    background: #1a1a2e;
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #2a2a4e;
    transform: translateY(-2px);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #1a1a2e;
    padding: 60px 24px 30px;
    color: var(--color-white);
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-white);
}

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

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--color-white);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ===================================
   Responsive Design
   =================================== */

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Tablet Styles */
@media (max-width: 992px) {
    .services-grid {
        gap: 20px;
    }
    
    .service-card {
        padding: 35px;
    }
    
    .about-contact-container {
        gap: 40px;
    }
    
    .footer-links {
        gap: 50px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    /* Mobile Menu */
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 46, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.5rem;
        padding: 12px 24px;
    }
    
    .header-container {
        padding: 0;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    /* Hero */
    .hero {
        padding-top: calc(var(--header-height) + 30px);
    }
    
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .hero-image-container {
        padding: 0 10px;
    }
    
    .floating-element {
        display: none;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 32px;
    }
    
    /* Stack */
    .stack {
        padding: 50px 20px;
        margin: 0 16px;
        border-radius: 16px;
    }
    
    .stack-icons {
        gap: 24px;
    }
    
    .stack-icon img {
        width: 48px;
        height: 48px;
    }
    
    .stack-description {
        font-size: 0.95rem;
    }
    
    /* Services */
    .services {
        padding: 60px 20px;
    }
    
    .services-title {
        margin-bottom: 40px;
    }
    
    .services-bg-circle {
        width: 200px;
        height: 200px;
        top: -50px;
        left: -60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 28px;
    }
    
    .service-card .service-title {
        font-size: 1.25rem;
    }
    
    /* About & Contact */
    .about-contact {
        padding: 60px 20px;
    }
    
    .about-contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-side {
        padding-right: 0;
    }
    
    .about-contact-bg-circle {
        display: none;
    }
    
    .contact-side {
        padding: 24px;
    }
    
    .contact-form {
        padding: 28px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 20px 24px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-tagline {
        max-width: 100%;
    }
    
    .footer-links {
        width: 100%;
        justify-content: center;
        gap: 50px;
    }
    
    .footer-column {
        text-align: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-tagline {
        font-size: 0.8rem;
    }
    
    .stack {
        padding: 40px 16px;
        margin: 0 12px;
    }
    
    .stack-title {
        font-size: 1.5rem;
    }
    
    .stack-icons {
        gap: 16px;
    }
    
    .stack-icon img {
        width: 40px;
        height: 40px;
    }
    
    .stack-icon span {
        font-size: 0.75rem;
    }
    
    .btn-stack {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .services {
        padding: 50px 16px;
    }
    
    .services-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .about-contact {
        padding: 50px 16px;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .contact-side {
        padding: 16px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-submit {
        padding: 14px 28px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
}
