/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

span { color: #38bdf8; }

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: #1e293b;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #334155;
}

.logo { font-size: 1.5rem; font-weight: 600; color: #38bdf8; }
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 25px; }
nav ul li a { color: #f8fafc; text-decoration: none; font-weight: 600; transition: 0.3s; }
nav ul li a:hover, nav ul li a.active { color: #38bdf8; }

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn:hover { background: #0284c7; color: white; transform: translateY(-2px); }
.outline-btn { background: transparent; border: 2px solid #38bdf8; color: #38bdf8; }
.outline-btn:hover { background: #38bdf8; color: #0f172a; }
.primary-btn { background: #10b981; color: white; }
.primary-btn:hover { background: #059669; }
.secondary-btn { background: #f59e0b; color: white; }
.secondary-btn:hover { background: #d97706; }

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}
.hero h1 { font-size: 3.5rem; margin-bottom: 15px; }
.hero p { font-size: 1.2rem; max-width: 600px; margin-bottom: 20px; color: #cbd5e1; }


.page-section {
    padding: 120px 10% 80px 10%; 
    text-align: center;
    min-height: 100vh; 
}
.dark-section { background: #1e293b; }
h2 { font-size: 2.5rem; margin-bottom: 40px; color: #f8fafc; }


.skills-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 50px; }
.skill-box {
    background: #334155; padding: 20px 30px; border-radius: 10px;
    border-left: 4px solid #38bdf8; font-weight: 600; transition: 0.3s;
}
.skill-box:hover { transform: scale(1.05); }
.next-step { margin-top: 40px; padding-top: 40px; border-top: 1px solid #334155; }

.decision-box {
    margin-top: 60px; padding: 40px; background: #0f172a;
    border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.decision-box h3 { margin-bottom: 20px; color: #cbd5e1; }
.buttons-group { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }


.contact-box { max-width: 600px; margin: 0 auto; background: #1e293b; padding: 40px; border-radius: 15px; }
form { display: flex; flex-direction: column; gap: 20px; }
input, textarea {
    width: 100%; padding: 15px; border-radius: 8px; border: 1px solid #334155;
    background: #0f172a; color: white; font-size: 1rem;
}
input:focus, textarea:focus { outline: none; border-color: #38bdf8; }


#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0f172a; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out; 
}


.spinner {
    font-size: 4rem;
    font-weight: 600;
    color: white;
    animation: spin 1.5s linear infinite; 
}

.spinner span { color: #38bdf8; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.show-loader {
    opacity: 1 !important;
    visibility: visible !important;
}
/* ---------------------------------- */

.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.info-card {
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid #38bdf8;
    max-width: 350px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: #38bdf8;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.95rem;
    color: #cbd5e1;
}

/* ========================================= */
/* --- MOBILE RESPONSIVENESS (Media Queries) --- */
/* ========================================= */

@media screen and (max-width: 768px) {
 
    nav {
        flex-direction: column; 
        padding: 15px 5%;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap; 
        justify-content: center;
        padding: 0;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    nav ul li a {
        font-size: 0.9rem;
    }


    .hero h1 {
        font-size: 2.2rem; 
    }
    
    .hero p {
        font-size: 1rem;
    }


    section, .page-section {
        padding: 120px 5% 50px 5%; 
    }

    h2 {
        font-size: 2rem;
    }

    /* 4. Cards & Containers */
    .info-card {
        width: 100%; 
        max-width: 100%;
    }

    .decision-box {
        padding: 25px 15px;
    }


    .buttons-group {
        flex-direction: column; 
        align-items: center;
        gap: 15px;
    }
    
    .buttons-group .btn {
        width: 100%; 
        max-width: 280px;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .spinner {
        font-size: 3rem; 
    }
}
