/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0px;
    padding: 10px;
    font-family: Arial, sans-serif;
    background-color: #f4f1ea;
    color: #1c1c1c;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body h1 {
    font-size: 40px;
}

body p {
    font-size: 20px;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    background-color: rgb(0, 0, 0);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
}

/* ===== Logo ===== */
.logo {
   color: white;
   font-size: 1.5rem;
   font-weight: 600;
   text-wrap: nowrap;
   transition: 0.3s ease-in-out;
}

.logo:hover {
    display: flex;
    gap: 2rem;
}
.visit-btn {
  text-decoration: none;
}

/* ===== Navigation Links ===== */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

li a {
    position: relative;
    color: white;
    font-weight: 300;
    text-decoration: none;
}


.logo img {
    height: 35px;
    width: auto;
    display: block;
}

.logo:hover {
    gap: 2rem;
}

/* ===== Navigation Links ===== */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

li a {/* ===== Header ===== */
header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    background-color: rgba(0, 0, 0);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
}

/* ===== Logo ===== */
.logo 
    position: relative;
    color: white;
    font-weight: 300;
    text-decoration: none;
}

li a::before {
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
}

li a:hover::before {
    width: 100%;
}

/* ===== Visit Button ===== */
.visit-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
}

.visit-btn:hover {
    background: linear-gradient(to right, rgb(255, 0, 255), rgb(0, 157, 255));
    transform: scale(1.03);
}

#menu-icon {
    font-size: 2rem;
    display: none;
}

/* ===== About Section Layout ===== */
.about-section {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.5rem 3rem;
    max-width: 900px;
    margin: 12rem auto 0 auto;
    padding: 2rem;
}

.about-img {
    grid-row: span 6;
    width: 24vw;
    height: 24vw;
    min-width: 180px;
    min-height: 180px;
    object-fit: cover;
    border-radius: 50%;
}

.about-greeting {
    font-size: 1.8rem;
    color: #555;
    text-align: center;
    font-weight: 500;
}

.about-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    color: #1c1c1c;
}

.about-role {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-align: center;
}

    .cv-btn, .contact-btn {
    display: inline-block;
    width: auto;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 500;
    margin-right: 1rem;
    border: 1.5px solid #1c1c1c;
    color: #1c1c1c;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
    .cv-btn:hover, .contact-btn:hover {
    background-color: #1c1c1c;
    color: white;
}
   .btn-group {
    display: flex;
    justify-content: center; /* Centers the buttons horizontally */
}
.social-nav {
    display: flex;
    gap: 2rem;
    font-size: 1.8rem;
    margin-top: 0.5rem;
    justify-content: center; /* Centers the icons horizontally */
}

    .social-nav a {
    color: #1c1c1c;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.social-nav a:hover {
    color: rgb(0, 157, 255);
}
/* ===== Skills Page Layout ===== */
.skills-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0rem;
    max-width: 1050px;
    margin: 6rem auto 0 auto;
    padding: 0rem;
    align-items: center;
}

.skills-title {
    grid-column: span 2;
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1c1c1c;
}

/* 2x2 Grid for Skill Cards */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Card Styles */
.skill-card {
    border: 1.5px solid #1c1c1c;
    border-radius: 2rem;
    background-color: transparent;
    transition: 0.3s ease-in-out;
    padding: 2rem;          
    min-width: 280px;      
    min-height: 280px;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.skill-icon {
    font-size: 1.5rem;
    color: #1c1c1c;
    margin-bottom: 0.8rem;
    display: block;
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.skill-level {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 0.8rem;
}

.skill-desc {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* Side Image */
.skills-figure {
    margin: 2rem;
    padding: 0;
}

.skills-img {
    width: 320px;
    height: 380px;
    object-fit: cover;
    border-radius: 2rem;
    display: block;
}
/* ===== Projects Page Layout ===== */
.projects-section {
    max-width: 1100px;
    margin: 8rem auto 6rem auto;
    padding: 2 4rem;
    text-align: center;
}

.projects-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1c1c1c;
}

/* 3-Card Grid */
.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    align-items: center;
}

/* Base Card Style */
.project-card {
    border: 1.5px solid #1c1c1c;
    border-radius: 2rem;
    padding: 1.5rem;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Colored Image Frame Box */
.project-img-box {
    width: 100%;
    height: 180px;
    margin: 0 0 1.2rem 0;
    border-radius: 1.2rem;
    padding: 0rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

}

.project-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.6rem 0;
    color: #1c1c1c;
    transition: color 0.3s ease-in-out;
}

.project-desc {
    font-size: 0.88rem;
    color: #555555;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
    transition: color 0.3s ease-in-out;
}

/* Action Buttons */
.project-btns {
    display: flex;
    gap: 0.8rem;
}

.project-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1.5px solid #1c1c1c;
    color: #1c1c1c;
    transition: all 0.3s ease-in-out;
}

/* Hover / Featured State (Black Card Style) */
.project-card.featured,
.project-card:hover {
    background-color: #000000;
    border-color: #000000;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-card.featured .project-name,
.project-card:hover .project-name {
    color: #ffffff;
}

.project-card.featured .project-desc,
.project-card:hover .project-desc {
    color: #cccccc;
}

.project-card.featured .project-btn,
.project-card:hover .project-btn {
    border-color: #ffffff;
    color: #ffffff;
}

.project-card.featured .project-btn:hover,
.project-card:hover .project-btn:hover {
    background-color: #ffffff;
    color: #000000;
}
/* ===== Contact Page & Form ===== */
.contact-section {
    max-width: 800px;
    margin: 7rem auto 5rem auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #1c1c1c;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Large Rounded Input Box Container */
.input-box {
    border: 1.5px solid #1c1c1c;
    border-radius: 3rem;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    background-color: transparent;
}

.email-icon {
    font-size: 2rem;
    color: #1c1c1c;
    margin-right: 1.2rem;
}

.email-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.5rem;
    color: #1c1c1c;
    width: 100%;
    font-family: inherit;
}

.email-input::placeholder {
    color: #777777;
}

/* Rounded Submit Button */
.submit-btn {
    padding: 0.6rem 2rem;
    border-radius: 2rem;
    border: 1.5px solid #1c1c1c;
    background-color: transparent;
    color: #1c1c1c;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.submit-btn:hover {
    background-color: #1c1c1c;
    color: #ffffff;
}

/* ===== Footer Styling ===== */
.footer {
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
    margin-top: auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    text-decoration: none;
    color: #1c1c1c;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #555555;
}

.copyright {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
}
/* ===== Responsive Media Queries ===== */

/* For Tablets and Smaller Screens */
@media screen and (max-width: 992px) {
    header {
        padding: 1.2rem 5%;
    }

    /* Hide standard nav links and show menu bar icon */
    .nav-links {
        display: none;
    }

    #menu-icon {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: #1c1c1c;
    }

    /* Projects 3-Column to 2-Column Grid */
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For Mobile Phones */
@media screen and (max-width: 768px) {
    /* Stack the About section into a single column */
    .about-section {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-top: 6rem;
        padding: 0 1rem;
    }

    .about-img {
        width: 45vw;
        height: 45vw;
    }

    .about-name {
        font-size: 2.5rem;
    }

    /* Skills Container 2-Column to 1-Column */
    .skills-container {
        grid-template-columns: 1fr;
    }

    /* Projects Container to Single Column */
    .projects-container {
        grid-template-columns: 1fr;
    }

    .projects-title {
        font-size: 2.3rem;
    }

    /* Contact Form full width */
    .contact-title {
        font-size: 2.5rem;
    }

    .input-box {
        padding: 0.6rem 1.2rem;
    }

    .email-input {
        font-size: 1.1rem;
    }

    /* Footer adjustments */
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
}/* ===== Responsive Mobile Navigation ===== */
@media screen and (max-width: 768px) {
    header {
        position: fixed;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
    }

    #menu-icon {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: white;
    }

    /* Mobile Dropdown Container */
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 1.5rem;
        margin-top: 0.5rem;
        padding: 1.5rem 0;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    /* Toggle class applied via JS */
    .nav-links.active {
        display: flex;
    }

    .visit-btn {
        display: none;
 }
}
#live-clock {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.95);
    padding: 3px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
    white-space: nowrap;
}
header {
    transition: transform 0.3s ease-in-out;
}
header.hide {
    transform: translateY(-150%);
}