/* =========================
   RESET + THEME TOKENS
========================= */
:root {
    --navy-blue: #001f3f;
    --teal: #0ea5a4;
    --teal-dark: #0b7e7c;
    --crimson: #dc143c;
    --soft-pink: #ffb6c1;
    --black: #0f172a;
    --white: #ffffff;

    --primary-color: var(--navy-blue);
    --secondary-color: var(--teal);
    --accent1-color: var(--crimson);
    --accent2-color: var(--soft-pink);

    --text-color: #0f172a;
    --muted-text: #475569;
    --light-bg: #f4f8fb;
    --card-bg: rgba(255, 255, 255, 0.72);

    --gradient-1: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-2: linear-gradient(135deg, #0ea5a4, #14b8a6);
    --gradient-3: linear-gradient(135deg, var(--accent1-color), var(--accent2-color));

    --glass-stroke: rgba(255, 255, 255, 0.42);
    --glass-blur: blur(11px);

    --shadow-sm: 0 6px 16px rgba(2, 8, 23, 0.08);
    --shadow-md: 0 12px 30px rgba(2, 8, 23, 0.12);
    --shadow-lg: 0 18px 40px rgba(2, 8, 23, 0.18);

    --neon-glow: 0 0 10px rgba(14, 165, 164, 0.45), 0 0 24px rgba(14, 165, 164, 0.28);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.65;
    color: var(--text-color);
    background:
        radial-gradient(circle at 12% 18%, rgba(14, 165, 164, 0.08), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(220, 20, 60, 0.08), transparent 36%),
        var(--light-bg);
    background-attachment: fixed;
}

/* =========================
   UTILITIES
========================= */
.section-padding {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* =========================
   NAVIGATION
========================= */
.custom-navbar {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition);
}

.custom-navbar .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.custom-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
}

.custom-navbar .navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: var(--text-color);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    letter-spacing: 0.6px;
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(14, 165, 164, 0.35);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: width 0.28s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* =========================
   HERO
========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.64)),
        url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=100');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(14, 165, 164, 0.14), transparent);
    animation: shimmer 10s linear infinite;
}

@keyframes shimmer {
    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff 25%, #bffdf7 78%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 170% auto;
    animation: gradientText 5s linear infinite;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.93);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes gradientText {
    0% { background-position: 0 50%; }
    100% { background-position: 100% 50%; }
}

/* =========================
   SHARED SECTION HEADINGS
========================= */
section h2,
.about-text h2,
#services h2 {
    font-size: clamp(2rem, 2.4vw, 2.7rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

section h2::after,
.about-text h2::after,
#services h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 58%;
    height: 3px;
    border-radius: 10px;
    background: var(--gradient-2);
    box-shadow: 0 0 10px rgba(14, 165, 164, 0.4);
}

/* =========================
   ABOUT
========================= */
.about {
    background-color: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.about-img img:hover {
    transform: translateY(-6px) scale(1.01);
}

/* =========================
   SKILLS
========================= */
.skills {
    background-color: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-size: 200% 200%;
    background-position: 100% 0;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.02));
    pointer-events: none;
}

.skill-card:nth-child(1) { background-image: var(--gradient-1); }
.skill-card:nth-child(2) { background-image: linear-gradient(135deg, #0f766e, #0ea5a4); }
.skill-card:nth-child(3) { background-image: linear-gradient(135deg, #0b7e7c, #14b8a6); }
.skill-card:nth-child(4) { background-image: var(--gradient-3); }

.skill-card:hover {
    background-position: 0 100%;
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.skill-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.45rem;
    position: relative;
}

.skill-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    border-radius: 4px;
    background: currentColor;
}

.skill-card ul {
    list-style: none;
}

.skill-card ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.skill-card ul li::before {
    content: '→';
    margin-right: 10px;
    font-weight: 700;
}

/* =========================
   SERVICES (VISIBILITY FIXED)
========================= */
#services {
    background-color: transparent;
}

#services p {
    color: var(--muted-text);
    margin-bottom: 40px;
}

/* Strong readable base */
#services .card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(203, 213, 225, 0.65);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding-top: 10px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Soft accent glow only (not dark overlay) */
#services .card::after {
    content: '';
    position: absolute;
    inset: auto -25% -65% -25%;
    height: 170%;
    background: radial-gradient(circle at center, rgba(14, 165, 164, 0.22), transparent 62%);
    opacity: 0;
    transform: scale(0.82);
    transition: var(--transition);
    z-index: 0;
    pointer-events: none;
}

#services .card:hover::after {
    opacity: 1;
    transform: scale(1);
}

#services .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14, 165, 164, 0.45);
}

/* Keep text readable at all times */
#services .card .card-body,
#services .card .card-title,
#services .card .card-body ul li,
#services .card .card-body i,
#services .card .card-text {
    position: relative;
    z-index: 1;
    color: #0f172a !important;
    transition: color 0.25s ease;
}

/* Slightly brighten on hover, do NOT switch to white */
#services .card:hover .card-title {
    color: #0b3f67 !important;
}

#services .card:hover .card-body ul li,
#services .card:hover .card-text {
    color: #1e293b !important;
}

#services .card i {
    color: #0ea5a4 !important;
    text-shadow: 0 0 10px rgba(14, 165, 164, 0.28);
}

#services .card ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

#services .card ul li {
    padding: 5px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

#services .card ul li:last-child {
    border-bottom: none;
}

#services .card-title {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* =========================
   PROJECTS
========================= */
.projects {
    background-color: transparent;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem;
    color: var(--white);
    background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.4), transparent);
    transform: translateY(100%);
    transition: var(--transition);
}

.project-card:hover .project-info {
    transform: translateY(0);
}

/* =========================
   CONTACT
========================= */
.contact {
    background-color: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-stroke);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(8px) translateY(-1px);
    background: rgba(14, 165, 164, 0.16);
}

.contact-item i {
    font-size: 1.45rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.contact-item:hover i {
    color: var(--secondary-color);
    box-shadow: var(--neon-glow);
}

.contact-item p {
    margin: 0;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--glass-stroke);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: var(--radius-sm);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(14, 165, 164, 0.62);
    box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.14);
}

/* =========================
   NEON BUTTONS
========================= */
.btn {
    display: inline-block;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    border: 1px solid rgba(191, 253, 247, 0.45);
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--neon-glow), 0 8px 16px rgba(14, 165, 164, 0.22);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 72%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-24deg);
    transition: left 0.7s ease;
}

.btn:hover::before {
    left: 150%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.56), 0 0 30px rgba(45, 212, 191, 0.27);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(14, 165, 164, 0.76);
    color: var(--teal-dark);
    box-shadow: none;
}

.btn-outline:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}

/* =========================
   FOOTER
========================= */
.footer {
    background: linear-gradient(180deg, #020617, #000000);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 1rem 0;
}

.social-links a {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.social-links a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    transform: translateY(-3px) scale(1.04);
    box-shadow: var(--neon-glow);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE MENU
========================= */
.mobile-menu {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .mobile-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(11px);
        -webkit-backdrop-filter: blur(11px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        transform: translateY(-120%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

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

/* =========================
   BACK TO TOP
========================= */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 25px;
    z-index: 999;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(14, 165, 164, 0.38), var(--neon-glow);
}

#backToTopBtn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #0f172a, var(--teal-dark));
}

/* Optional map style class (if used in HTML) */
.map-frame {
    width: 100%;
    height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background: #e2e8f0;
}
