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

/* ===== SECTION SYSTEM ===== */
.section {
    padding: 80px 0;
}

.section h2 {
    margin-bottom: 40px;
}


/* ================= ROOT VARIABLES ================= */
:root {
    --bg-main: #0a192f;
    --bg-card: #112240;
    --bg-hover: #0f2a44;
    --accent: #64ffda;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
}

/* ================= BODY ================= */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
}

/* ================= CONTAINER ================= */
.container {
    max-width: 950px;
    margin: auto;
    padding: 40px 20px;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(6px);
    z-index: 100;
}

.navbar ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 12px 0;
    flex-wrap: wrap;
}

.navbar ul li {
    position: relative; /* Dropdown positioning */
}

.nav-btn {
    padding: 8px 18px;
    border: 2px solid var(--accent);
    border-radius: 25px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--accent);
    color: var(--bg-main);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(100,255,218,0.3);
}

/* ================= DROPDOWN ================= */
/* Dropdown parent */
.dropdown {
    position: relative; /* absolute positioning এর জন্য */
}

/* Menu hidden by default */
.dropdown-menu {
    display: none; /* hide by default */
    position: absolute;
    top: 120%; /* More button এর নিচে */
    left: 0;
    background: rgba(10,25,47,0.98);
    border-radius: 20px;
    min-width: 160px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    z-index: 100;
}

/* Menu items */
.dropdown-menu li {
    margin: 5px 10px;
}

.dropdown-menu li a {
    display: block;
    text-decoration: none;
    padding: 10px 18px;
    font-weight: 600;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background: var(--accent);
    color: var(--bg-main);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(100,255,218,0.3);
}

/* ================= HERO ================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 80px;
}

.hero-text h1 {
    font-size: 52px;
    color: var(--accent);
}

.hero-text h2 {
    font-size: 32px;
    margin-top: 5px;
}

.hero-text h3 {
    font-size: 18px;
    color: var(--text-muted);
    margin-top: 10px;
}

.hero-image img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: 0 0 25px rgba(100, 255, 218, 0.3);
    transition: transform 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.06) rotate(1deg);
}

/* ================= SECTION HEADINGS ================= */
h2 {
    margin-top: 60px;
    margin-bottom: 15px;
    color: var(--accent);
}

p {
    font-size: 16px;
}

/* ================= TABLE ================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    border: 1px solid #444;   /* soft black */
}

th, td {
    border: 1px solid #233554;
    padding: 12px;
    text-align: center;
}

th {
    background: var(--bg-card);
    color: var(--accent);
}

tr:nth-child(even) {
    background: var(--bg-hover);
}

/* ================= SKILLS ================= */
.skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    transition: transform 0.3s ease;
}

.skill:hover {
    transform: translateY(-6px);
}

.skill h3 {
    color: var(--accent);
    margin-bottom: 6px;
}

.circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) 0deg 75%, #233554 75% 360deg);
    display: grid;
    place-items: center;
}

.circle span {
    font-weight: bold;
    color: var(--accent);
}

/* ================= PROJECTS ================= */
.projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project {
    background: var(--bg-card);
    padding: 22px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.project h3 {
    color: var(--accent);
}

/* ================= CONTACT CARDS ================= */
.contact-resume {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    flex: 1 1 220px;
    background: var(--bg-card);
    padding: 22px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    background: var(--bg-hover);
}

.card h3 {
    color: var(--accent);
    margin-bottom: 8px;
}

.card a {
    color: var(--text-main);
    text-decoration: none;
}

.card a:hover {
    color: var(--accent);
}

/* ================= SCROLL REVEAL ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text h2 {
        font-size: 26px;
    }

    .skill {
        flex-direction: column;
        gap: 15px;
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #0d1b2a;
    padding: 30px 10px;
    text-align: center;
}

.visitor-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 1px solid rgba(0,180,216,0.3);
    font-size: 14px;
}

.visitor-label {
    color: #cccccc;
}

#visitor-count {
    font-size: 18px;
    font-weight: bold;
    color: #00b4d8;
}

.signature {
    margin-top: 8px;
    font-size: 12px;
    color: #00b4d8;
}

.confetti {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
}
/* ================= CONTACT GLASS FORM ================= */

.contact-section {
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

.glass {
    backdrop-filter: blur(15px);
    background: rgba(17, 34, 64, 0.6);
    border: 1px solid rgba(100,255,218,0.2);
}

.contact-form {
    width: 100%;
    max-width: 100%;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: 0.4s ease;
}

.contact-form:hover {
    transform: translateY(-8px);
}

/* Floating Label */

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 12px;
    background: transparent;
    border: 2px solid #233554;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 14px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: 0.3s ease;
    background: transparent;
}

/* Floating effect */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(100,255,218,0.3);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--accent);
    background: var(--bg-card);
    padding: 0 6px;
    border-radius: 6px;
}

/* Button */

.contact-form button {
    width: 100%;
    padding: 14px;
    border-radius: 40px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form button:hover {
    background: var(--accent);
    color: var(--bg-main);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(100,255,218,0.3);
}

/* Success / Error Message */

#form-status {
    margin-top: 18px;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transition: 0.4s ease;
}

#form-status.success {
    color: #64ffda;
    opacity: 1;
}

#form-status.error {
    color: #ff6b6b;
    opacity: 1;
}

.nav-menu2{
    display: flex;
    gap: 10px;
    list-style: none;
}

.nav-btn2 {
    padding: 8px 18px;
    border: 2px solid var(--accent);
    border-radius: 25px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.nav-btn2:hover {
    background: var(--accent);
    color: var(--bg-main);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(100,255,218,0.3);
}

h2 {
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;   /* পুরো underline */
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
/* h2 like (I'm Maruf Mahady Arnob) */
.h2-like {
    font-size: 30px;      /* h2 এর size */
    font-weight: bold;     /* h2 bold থাকে */
    margin: 20px 0;       /* h2 এর default top-bottom spacing */
    line-height: 1.2;     /* text spacing ঠিক রাখতে */
    color: var(--accent);
}

/* প্রজেক্ট বাটনের কার্সর = পয়েন্টার হবে */
.project {
    cursor: pointer;
}
