/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(125, 211, 192, 0.3);
    color: #0A1628;
}

/* ===== Side Navigation ===== */
.side-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.side-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.side-nav-link svg {
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.side-nav-link:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(125, 211, 192, 0.08);
}

.side-nav-link:hover svg {
    color: #7DD3C0;
}

.side-nav-link.active {
    color: #7DD3C0;
    background: rgba(125, 211, 192, 0.12);
}

.side-nav-link.active svg {
    color: #7DD3C0;
}

.side-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: #7DD3C0;
    border-radius: 0 4px 4px 0;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #7DD3C0, #4EC4AB);
    color: #0A1628;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(125, 211, 192, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(125, 211, 192, 0.4);
    background: linear-gradient(135deg, #9ADECC, #6DD3BB);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
    position: relative;
}

/* ===== Service Cards ===== */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* ===== Feature Cards ===== */
.feature-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }

/* ===== Gallery ===== */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-item:nth-child(5) { transition-delay: 0.25s; }

/* ===== Mobile Header ===== */
.mobile-header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

/* ===== Mobile Menu ===== */
.mobile-menu-overlay {
    transition: opacity 0.3s ease;
}

.mobile-menu-panel {
    transition: transform 0.3s ease;
}

.mobile-menu-link {
    display: block;
    padding: 14px 0;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(125, 211, 192, 0.1);
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: #7DD3C0;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: rgba(125, 211, 192, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(125, 211, 192, 0.5);
}

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

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

/* ===== Responsive ===== */
@media (max-width: 1023px) {
    .side-nav {
        display: none !important;
    }
    
    main {
        margin-left: 0 !important;
    }
}

@media (min-width: 1024px) {
    .mobile-header {
        display: none;
    }
}

/* ===== Focus styles ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
}

button:focus-visible, a:focus-visible {
    outline: 2px solid #7DD3C0;
    outline-offset: 2px;
}
