/* Non-Critical CSS - Load after initial render */

/* Font faces - load after critical content */
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aloevera';
    src: url('../font/Aloevera/AloeveraDisplay-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Non-critical utility classes */
.text-primary { color: #5E55F3; }
.text-accent { color: #0099ff; }
.bg-primary { background-color: #5E55F3; }
.border-primary { border-color: #5E55F3; }
.btn-primary {
    background-color: #5E55F3;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}
.btn-primary:hover { background-color: #4a44c4; }

/* Scroll snapping - non-critical */
html, body {
    overflow: hidden;
}
#scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#scroll-container::-webkit-scrollbar {
    display: none;
}
#scroll-container > section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

/* Logo styles */
.logo-svg {
    height: 3.2rem;
}
.logo-text {
    font-size: 2rem;
    margin-left: -1.2rem;
    font-weight: bold;
    position: relative;
    top: 0.3rem;
}

/* Animation styles - load after content */
.animate-on-scroll {
    opacity: 0;
}

/* Logo animation */
#animated-logo-path {
    stroke: #2563EB;
    stroke-width: 8;
    fill: transparent;
    stroke-dasharray: 1688;
    stroke-dashoffset: 1688;
    animation: draw-and-pause 10s ease-in-out infinite;
}

/* Logo animation */
#animated-logo-path_white {
    stroke: #ffffff;
    stroke-width: 8;
    fill: transparent;
    stroke-dasharray: 1688;
    stroke-dashoffset: 1688;
    animation: draw-and-pause 10s ease-in-out infinite;
}

@keyframes draw-and-pause {
    0% {
        stroke-dashoffset: 1688;
        fill: transparent;
    }
    30% {
        stroke-dashoffset: 0;
        fill: transparent;
    }
    50% {
        stroke-dashoffset: 0;
        fill:rgba(37, 100, 235, 0.7);
    }
    70% {
        stroke-dashoffset: 0;
        fill: #2563EB;
    }
    100% {
        stroke-dashoffset: 0;
        fill: #2563EB;
    }
}

/* Modal styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Next section button */
.next-section-btn {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
.next-section-btn:hover {
    background-color: #5E55F3;
    color: white;
    border-color: #5E55F3;
}

/* Styled title */
.styled-title {
    background-color: #12379E;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    display: inline-block;
    font-weight: bold;
    font-size: 2rem;
}

/* Language dropdown styles */
#lang-dropdown-desktop, #lang-dropdown-mobile {
    min-width: 110px;
    background: rgba(0,0,0,0.85) !important;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.18);
    display: none;
    flex-direction: column;
    align-items: center;
    border-radius: 0.5rem;
    padding: 0.25rem 0;
    position: absolute;
    right: 0;
    z-index: 50;
}
#lang-dropdown-desktop.show, #lang-dropdown-mobile.show {
    display: flex;
}
#lang-dropdown-desktop .lang-option, #lang-dropdown-mobile .lang-option {
    background: transparent !important;
    color: #fff;
    justify-content: center;
    width: 100%;
    border-radius: 0.375rem;
    transition: background 0.2s, color 0.2s;
}
#lang-dropdown-desktop .lang-option:hover, #lang-dropdown-mobile .lang-option:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #3b82f6;
}

/* Projects section styles */
#projects-container::-webkit-scrollbar {
    display: none;
}
#projects-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.project-card {
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

/* Testimonial styles */
.testimonial-quote-box {
    background-color: #4A90E2;
    border-radius: 2rem;
    padding: 0.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    min-height: 200px;
    display: flex;
    justify-content: flex-start;
}

/* Contact form styles */
.form-input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    color: white;
    width: 100%;
    outline: none;
    transition: border-bottom-color 0.3s;
}
.form-input:focus {
    outline: none;
    border-bottom-color: white;
}
.form-label {
    position: absolute;
    top: 1.5rem;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
    .section-title { font-size: 2.5rem; }
    .hero-title { font-size: 3.5rem; }
    #about .flex-col, #mission .flex-col {
        align-items: center;
        text-align: center;
    }
    #mission .mission-block, #mission .ambition-block {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* Hide scrollbar utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
} 