/* ==========================================================================
   CSS Variables & Globals
   ========================================================================== */
   :root {
    --sky-blue: #4DA8FF;
    --deep-sky: #2196F3;
    --yellow: #FFD54F;
    --orange: #FF7A00;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --dark-text: #1E293B;
    --p-text: #475569;
    
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body, html {
    font-family: var(--font-main);
    color: var(--dark-text);
    background-color: var(--light-gray);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.gradient-text {
    background: linear-gradient(45deg, var(--deep-sky), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--p-text);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--deep-sky), var(--sky-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--deep-sky);
    border: 1px solid var(--deep-sky);
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

/* ==========================================================================
   Background Shapes
   ========================================================================== */
.bg-shapes {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.shape-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: var(--sky-blue);
    animation-delay: 0s;
}

.shape-2 {
    bottom: -10%; right: -10%;
    width: 60vw; height: 60vw;
    background: var(--yellow);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%; left: 50%;
    width: 40vw; height: 40vw;
    background: var(--orange);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.sticky {
    padding: 15px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-text);
    text-decoration: none;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

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

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

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background: var(--dark-text);
    transition: 0.3s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--p-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    padding: 15px 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 5s infinite alternate;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 30px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--deep-sky);
    margin-bottom: 10px;
}

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

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(77, 168, 255, 0.1), rgba(255, 122, 0, 0.1));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--p-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.learn-more {
    color: var(--deep-sky);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================================================
   Process Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--deep-sky);
    border: 4px solid var(--white);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    box-shadow: 0 0 10px rgba(33,150,243,0.5);
}

.timeline-item:nth-child(even) .timeline-dot { left: -10px; }

.timeline-content {
    padding: 20px 30px;
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--dark-text);
}
.timeline-content p {
    color: var(--p-text);
    font-size: 0.9rem;
}

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-card:hover img { transform: scale(1.1); }
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
    padding: 40px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item .icon {
    font-size: 1.5rem;
    background: var(--white);
    padding: 10px;
    border-radius: 50%;
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.info-item h4 { margin-bottom: 5px; }
.info-item p { color: var(--p-text); font-size: 0.95rem; }

.contact-info hr {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 30px 0;
}

.business-hours h4 { margin-bottom: 10px; }
.business-hours p { color: var(--p-text); margin-bottom: 5px; }
.business-hours small { color: var(--orange); display: block; margin-top: 10px; }

.contact-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* Form Styles */
.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark-text);
    outline: none;
    transition: var(--transition);
}
.contact-form select { appearance: none; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--deep-sky);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.contact-form textarea {
    margin-bottom: 20px;
    resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--white);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--p-text);
    margin-top: 15px;
    max-width: 300px;
}

.footer-links h4, .footer-legal h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-links li, .footer-legal li {
    margin-bottom: 12px;
}

.footer-links a, .footer-legal a {
    color: var(--p-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--deep-sky);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--p-text);
    font-size: 0.9rem;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    padding: 40px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--p-text);
    transition: var(--transition);
}

.close-btn:hover { color: var(--orange); }

.modal-body {
    margin-top: 20px;
    overflow-y: auto;
    padding-right: 15px;
    color: var(--p-text);
    line-height: 1.6;
}
.modal-body h3 {
    color: var(--dark-text);
    margin: 20px 0 10px;
}
.modal-body p { margin-bottom: 15px; }

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }

/* ==========================================================================
   Animations & Loader
   ========================================================================== */
#loader {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: var(--light-gray);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 50px; height: 50px;
    border: 5px solid var(--glass-border);
    border-top-color: var(--deep-sky);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}
.fade-up { transform: translateY(50px); }
.fade-left { transform: translateX(50px); }
.fade-right { transform: translateX(-50px); }

/* ==========================================================================
   Responsive (Media Queries)
   ========================================================================== */
@media screen and (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .floating-badge { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { flex-direction: column; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-item:nth-child(odd) { text-align: left; }
    .timeline-dot { left: 21px !important; }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* Hide default nav for mobile */
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-links.active { display: flex; }
    .nav-btn { display: none; }
    .hamburger { display: block; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .input-group { flex-direction: column; gap: 0; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}
