/* ===== Global Style ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Code', monospace, Arial, sans-serif; /* coder-friendly font */
}

body {
    background-color: #1e1f2e; /* dark coder base */
    color: #e0e0e0; /* off-white text */
    scroll-behavior: smooth;
}

/* ===== Navbar ===== */
header {
    width: 100%;
    background: #2a2d3e;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 999;
}

.navbar {
    max-width: 1100px;
    margin: auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #00d8ff;
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #66ffcc; /* syntax highlight accent */
    font-weight: bold;
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background-color: #2a2d3e; /* base hero color */
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
    font-size: 40px;
    line-height: 1.2;
    color: #00d8ff;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
}

.hero-content p {
    margin: 12px 0;
    font-size: 18px;
    color: #b0b0b0;
    animation: fadeInUp 2s ease forwards;
    animation-delay: 2s;
}

.hero-content .btn {
    display: inline-block;
    background: #00d8ff;
    color: #1e1f2e;
    padding: 10px 25px;
    border-radius: 5px;
    margin-top: 10px;
    text-decoration: none;
    transition: background 0.3s ease;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.5s;
}

.hero-content .btn:hover {
    background: #66ffcc;
}

/* ===== Keyframes ===== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    font-size: 30px;
    margin: 60px 0 20px;
    color: #00d8ff;
}

/* ===== About Section ===== */
.about {
    max-width: 900px;
    margin: auto;
    text-align: center;
    padding: 20px;
    color: #e0e0e0;
}

.about-text {
    font-size: 18px;
    color: #b0b0b0;
    margin-top: 10px;
}

/* ===== Skills Section ===== */
.skills {
    padding: 20px;
    margin-bottom: 120px;
}

.skill-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.skill-box {
    background: #3b3f58;
    padding: 12px 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
    font-size: 16px;
    color: #e0e0e0;
}
/* Hover effect */
.skill-box:hover {
    color: #66ffcc; /* ensures text is readable on bright hover */
    cursor: pointer;
}

/* ===== Project Section ===== */
.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 30px auto;
}

.project-card {
    background-color: #2a2a3c;
    color: #fff;
    padding: 20px;
    width: calc(50% - 20px);   /* ➜ Two cards per row */
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}


.project-card:hover {
    transform: translateY(-5px);
    background-color: #34344f; /* slightly lighter on hover */
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.project-card h3 {
    margin-bottom: 10px;
    color: #00aaff; /* accent color */
}


.project-card p {
    font-size: 14px;
    color: #ccc;
    flex-grow: 1; /* pushes button to bottom */
    margin-bottom: 15px;
}
.project-card h3:hover{
    color: #66ffcc;
}
.project-btn {
    text-decoration: none;
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.project-btn:hover {
    background-color: #0a0f14;
    color: #66ffcc;
    border: 1px solid #66ffcc;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media(max-width: 768px) {
    .project-card {
        width: 90%;
        margin: 0 auto;
    }
}


/* ===== Split Contact Section ===== */
.contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: stretch;      /* 🔥 ensures both panels are same height */
}

/* ===== Contact Card ===== */
.contact-card {
    background: #0a0f14;
    padding: 30px;
    width: 350px;
    border-radius: 12px;
    border: 1px solid #007bff;
    box-shadow: 0 0 15px rgba(102, 255, 204, 0.1);
    color: var(--text-secondary);

    display: flex;             /* 🔥 makes inside items aligned */
    flex-direction: column;
    justify-content: space-between;
    height: 100%;              /* 🔥 matches form height */
}

.contact-card h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.contact-card p {
    margin: 10px 0;
    font-size: 1rem;
}

.contact-card a {
    color: #007bff;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
    color: #66ffcc;

}

/* ===== Contact Form ===== */
.contact-form {
    width: 350px;
    background: #0a0f14;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #007bff;
    box-shadow: 0 0 15px rgba(102, 255, 204, 0.1);

    display: flex;             /* 🔥 equal height alignment */
    flex-direction: column;
    height: 100%;
}

.contact-form h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #222;
    background: #111a22;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
}

/* Send Button */
.form-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: #0a0f14;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.form-btn:hover {
    background: #44e6b3;
    transform: translateY(-3px);
}

/* ===== Buttons (GitHub / LinkedIn) ===== */
.contact-btn {
    display: inline-block;
    margin: 10px 5px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #007bff;
    color: #007bff;
    background: transparent;
    transition: 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.contact-btn:hover {
    background: #0a0f14;
    color: #44e6b3;
    border: 1px solid #44e6b3;
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .contact-card,
    .contact-form {
        width: 100%;
        height: auto;          /* resets height on mobile */
    }
}

/* Popup Background */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

/* Popup Box */
.popup-content {
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 12px;
    text-align: center;
    width: 320px;
    max-width: 90%;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.2);
    animation: slideUp 0.35s ease;
}

.popup-content p {
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 500;
    color: #222;
}

#popupOk {
    padding: 10px 25px;
    background: #0066ff;     /* modern blue */
    border: none;
    color: #fff;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

#popupOk:hover {
    background: #44e6b3;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}



/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile Menu ===== */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

@media(max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #2a2d3e;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5);
        flex-direction: column;
        gap: 15px;
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .nav-links a {
        padding: 6px 8px;
        color: #e0e0e0;
    }

    .nav-links a:hover {
        color: #66ffcc;
    }
}

/* Prevent body scroll when mobile menu is open */
.no-scroll {
    overflow: hidden;
}
/* ===== Footer Section ===== */
.footer {
    background: #0a0f14;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #1a2833;
}

.footer p {
    color: #8a9aa5;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-links a {
    margin: 0 12px;
    text-decoration: none;
    color: #66ffcc;       /* matches your enhanced themed accent */
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #33ccaa;
}
