/* ===================================== */
/* 🔹 1. BASE (GLOBAL RESET & BODY) */
/* ===================================== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #0f172a;
    color: #e2e8f0;
    font-family: Arial, sans-serif;
}

main {
    flex-grow: 1;
}

.page-container {
    margin-top: 90px;
}


/* ===================================== */
/* 🔹 2. LAYOUT */
/* ===================================== */
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
.logo:hover .logo-img {
    transform: scale(1.05);
}
/* Navbar */
.custom-navbar {
    background: linear-gradient(90deg, #020617, #0f172a);
    border-bottom: 1px solid #1e293b;
    padding: 12px 0;
}

.navbar .nav-link {
    color: #cbd5f5 !important;
    margin-left: 15px;
    position: relative;
    transition: 0.3s;
}

.navbar .nav-link:hover {
    color: #38bdf8 !important;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #38bdf8;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.navbar .nav-link:hover::after {
    width: 100%;
}

/* Sections */
.section {
    margin-top: 60px;
}

.hero {
    padding: 80px 0;
}

.hero-section {
    margin-top: 40px;
}

/* ===== FOOTER ===== */

.footer {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
    padding: 20px 0;
}

/* Grid layout = perfect control */

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

/* LEFT */
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* CENTER */
.footer-text {
    text-align: center;
    font-size: 14px;
}

/* RIGHT */
.footer-email {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Hover */
.social-links a,
.footer-email a {
    opacity: 0.8;
    transition: 0.3s;
}

.social-links a:hover,
.footer-email a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===================================== */
/* 🔹 3. COMPONENTS */
/* ===================================== */

/* Buttons */
.btn-custom {
    background-color: #38bdf8;
    color: black;
}

/* Cards */
.card {
    background-color: #020617;
    border: 1px solid #1e293b;
    border-radius: 10px;
    color: #e2e8f0;
    padding: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

.card p {
    color: #cbd5f5;
    line-height: 1.6;
}

/* Forms */
/* ===== DARK INPUTS (FIX) ===== */
input,
textarea,
.form-control {
    background-color: #020617 !important;
    color: #e2e8f0 !important;
    border: 1px solid #1e293b !important;
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
    color: #94a3b8 !important;   /* 👈 ghost gray */
    opacity: 1;
}

/* Focus effect */
input:focus,
textarea:focus,
.form-control:focus {
    background-color: #020617 !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
}

/* Badges */
.custom-badge {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px 0;
    border-radius: 999px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #94a3b8;
    font-size: 13px;
}

/* Filter buttons */
.filter-btn {
    background: transparent;
    border: 1px solid #38bdf8;
    color: #38bdf8;
    padding: 8px 20px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #38bdf8;
    color: #020617;
}

/* Back button */
.back-btn {
    font-size: 14px;
    padding: 6px 12px;
    opacity: 0.8;
}
.back-btn:hover {
    opacity: 1;
}


/* ===================================== */
/* 🔹 4. PAGES */
/* ===================================== */

/* About Page */
.about-modern {
    margin-top: 80px;
}

.about-modern-title {
    font-size: 32px;
    font-weight: 600;
}

.about-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 40px;
    margin-top: 50px;
}

.about-img {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
}

/* Hero Content */
.hero-text {
    padding-right: 40px;
}

.main-title {
    font-size: 38px;
    font-weight: 700;
}

.role-title {
    font-size: 24px;
    color: #cbd5f5;
}

.hero-description {
    color: #94a3b8;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-text {
    max-width: 500px;
}

/* Projects */
.project-card {
    background: #020617;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #1e293b;
    transition: 0.3s;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #334155;
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    padding: 16px;
}

.project-desc {
    font-size: 14px;
    color: #cbd5f5;
    margin-bottom: 12px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ===== SEARCH FORM ===== */

.search-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* INPUT */
.search-input {
    padding: 10px;
    border-radius: 8px;
    border: none;
    width: 300px;
    background: #020617;
    color: white;
}

/* CLEAR BUTTON (desktop stays inline) */
.clear-btn {
    white-space: nowrap;
}
.search-form .btn {
    width: auto !important;
}
/* CONTACT PAGE */
.contact-header {
        text-align: center;
    }

/* ===================================== */
/* 🔹 5. UTILITIES */
/* ===================================== */

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Wave animation */
.wave-anim {
    animation: wave 2s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(12deg); }
    60% { transform: rotate(-5deg); }
    75% { transform: rotate(8deg); }
    100% { transform: rotate(0deg); }
}

.profile-img {
    max-width: 420px;   /* 🔥 controls size */
    width: 100%;
    height: auto;
    object-fit: cover;

    border-radius: 20px;   /* 🔥 nice design */
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ===================================== */
/* 🔹 6. RESPONSIVE */
/* ===================================== */
@media (max-width: 768px) {

    .hero-section {
        margin-top: 20px;
    }

    .hero-text {
        text-align: center;
        padding-right: 0;
        margin: 0 auto;
    }

    .main-title {
        font-size: 28px;
    }

    .role-title {
        font-size: 18px;
    }

    .hero-description {
        font-size: 14px;
        text-align: center;
    }

    .hero-title-wrapper {
        flex-direction: column;   /* 🔥 stack vertically */
        align-items: center;
        gap: 5px;
    }

    .hero-text .btn {
        display: block;
        margin: 20px auto 0;
    }

    .profile-img {
        max-width: 260px;
        margin-top: 20px;
    }

    .btn,
    .btn-custom {
        width: 100%;
    }

    .card {
        padding: 15px !important;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .social-links,
    .footer-email {
        justify-content: center;
    }

    .footer-text {
        position: static;
        transform: none;
    }

    .about-modern-title {
        text-align: center;
    }

    .consultant-text {
        display: block;   /* 🔥 forces new line ONLY on mobile */
    }
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    /* FIRST ROW (input + search) */
    .search-row {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .search-input {
        flex: 1;
        min-width: 0;
    }

    .search-row .btn {
        white-space: nowrap;
        flex: none;
        width: auto;
    }

    /* SECOND ROW (clear button) */
    .clear-btn {
        width: auto;
        display: block;
        margin: 10px auto 0;
        padding: 8px 16px;
    }

    .contact-header {
        text-align: center;
    }

    .contact-btn {
        width: 50%;
        display: block;
        margin: 20px auto 0;
    }
    form.card {
        max-width: 95%;
        margin: 0 auto;
    }
}
