
/* --- VARIABLES & BASE RESET --- */
:root {
    --bg-color: #121212;         /* Main Background: Deep Charcoal */
    --card-color: #1E1E1E;       /* Card/Element Background: Dark Gray */
    --accent-color: #fd4dba;     /* Primary Accent: Vibrant Pink/Magenta */
    --text-color: #FFFFFF;       /* Main Text Color: Pure White */
    --text-secondary: #B3B3B3;   /* Secondary Text/Paragraphs: Light Gray */
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    /* Changed font-family for a slightly cleaner look */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    text-decoration: none; 
    scroll-behavior: smooth; 
} 
body{ 
    background-color: var(--bg-color); 
    color: var(--text-color); 
} 

/* -------------------------------------------------------------------------- */
/* --- 1. NAVBAR STYLING --- */ 
/* -------------------------------------------------------------------------- */
nav { 
    background-color: transparent; 
    display: flex; 
    align-items: center; 
    justify-content: space-around; 
    top: 0; 
    width: 100%; 
    color: var(--text-color); 
    font-size: 1.15rem; /* Increased size */
    padding: 15px 0; 
    position: fixed; 
    z-index: 1000; 
    transition: background-color 0.5s ease, padding 0.5s ease; 
} 

nav.scrolled {
    background-color: #0fbefd; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    padding: 10px 0; 
}

/* Updated Scrolled Text Color for better contrast against bright blue */
nav.scrolled .nav_head, 
nav.scrolled ul li a {
    color: var(--bg-color); /* Changes text to deep charcoal/black when scrolled */
}

nav.scrolled ul li a:hover {
    color: #FFFFFF; /* White hover text on blue background */
}


.nav_head { 
    font-size: 38px; /* Slightly increased size */
    letter-spacing: 1px; 
    color: var(--text-color);
} 
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}
nav ul li a { 
    padding: 15px; 
    color: var(--text-color); 
    transition: color 0.3s;
    font-weight: 500;
    font-size: 17px; /* Explicit size for links */
} 
nav ul li a:hover { 
    color: var(--accent-color); 
} 
.contact_btn { 
    padding: 10px 30px; 
    color: var(--bg-color); 
    margin-left: 2rem; 
    background-color: var(--accent-color); 
    border-radius: 30px; 
    font-size: large; 
    cursor: pointer; 
    border: none;
    transition: 0.5s ease; 
    font-weight: bold;
} 
.contact_btn:hover { 
    color: var(--accent-color); 
    border: 3px solid var(--accent-color); 
    background: transparent; 
} 

/* Responsive Navbar Controls (Hidden on desktop) */ 
.checkbtn { 
    font-size: 30px; 
    float: right; 
    margin-right: 30px; 
    cursor: pointer; 
    display: none; 
} 
.checkbox { 
    display: none; 
}


/* -------------------------------------------------------------------------- */
/* --- 2. HOME SECTION --- */ 
/* -------------------------------------------------------------------------- */
.home {
    background: linear-gradient(135deg, var(--bg-color) 0%, #151515 50%, #202020 100%);
    min-height: 100vh; 
    display: flex; 
    flex-direction: row-reverse; 
    padding: 220px 100px; 
    justify-content: space-around; 
    gap: 5rem; 
    align-items: center; 
} 
.description h1{ 
    font-size: 50px; /* Base h1 size */
}
.description h1 span{ 
    color: var(--accent-color); 
    font-size: 65px; /* Emphasized h1 span size */
} 
.description h2{ 
    margin-top: 20px; 
    font-size: 35px; /* Increased h2 size */
    font-weight: 900; 
} 
.description h2 span{ 
    color: var(--accent-color); 
    position: relative; 
} 
/* Typing animation effect on the H2 span */
.description h2 span::after{ 
    content: ""; 
    position: absolute; 
    left: 0; 
    right: 0px; 
    height: 100%; 
    border-left: 4px solid var(--accent-color); 
    background-color: var(--bg-color); 
    animation: text 3s infinite backwards steps(10); 
} 
@keyframes text{ 
    0%{ left: 0; } 
    50%{ left: 100%; } 
    100%{ left: 0; } 
} 
.description p{ 
    max-width: 500px; 
    margin-top: 20px; 
    font-size: 19px; /* Increased general paragraph size */
    line-height: 1.7; /* Improved line spacing */
} 

/* Social Icons Styling */
.font {
    margin-top: 20px; 
}
.font i{ 
    margin: 25px 8px; 
    border: 2px solid var(--accent-color); 
    border-radius: 50%; 
    padding: 13px; 
    font-size: 20px; 
    cursor: pointer; 
    transition: .4s ease-in-out; 
    color: var(--text-color); 
} 
.font i:hover{ 
    background-color: var(--accent-color); 
    transform: translateY(-15px); 
    box-shadow: 0px 0px 15px var(--accent-color); 
    color: var(--bg-color); 
} 
.description button{ 
    padding:14px 28px; /* Slightly increased button padding */
    font-size: 22px; /* Increased button font size */
    border-radius: 10px; 
    background-color: var(--accent-color); 
    color: var(--bg-color);
    cursor: pointer; 
    border: none; 
    margin-top: 10px; 
    font-weight: bold;
    transition: 0.3s ease;
} 
.description button:hover {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0px 0px 15px var(--accent-color); 
}

/* Profile image styling with animation */
.home img{ 
    background-color: var(--accent-color); 
    padding: 10px; 
    border-radius: 50%; 
    box-shadow:0px 0px 30px var(--accent-color); 
    filter: brightness(1.1); 
    animation: animate 2.5s ease-in-out forwards infinite; 
} 
.home img:hover{ 
    box-shadow: 0px 0px 50px var(--accent-color); 
} 
@keyframes animate{ 
    0%{ transform: translateY(0px); } 
    50%{ transform: translateY(-15px); } 
    100%{ transform:translateY(0px); } 
} 


/* -------------------------------------------------------------------------- */
/* --- 3. ABOUT SECTION --- */ 
/* -------------------------------------------------------------------------- */
.about { 
    display: flex; 
    justify-content: space-around; 
    margin: 100px 150px; 
    gap: 60px; 
    padding-top: 100px; 
    flex-wrap: wrap; 
} 
.about_section { max-width: 800px; text-align: center;} 
.about_section h1 { font-size: 45px;} /* Adjusted section heading size */
.about_section span { color: var(--accent-color); } 
.about_section p {
    margin-top: 18px; /* Increased margin */
    line-height: 1.7; /* Improved line spacing */
    color: var(--text-secondary);
    font-size: 17px; /* Increased paragraph size */
}
.about_btn { 
    background-color: var(--accent-color); 
    padding: 13px 25px;
    font-size: 20px;
    margin-top: 25px;
    border-radius: 30px;
    box-shadow: 0px 0px 15px var(--accent-color);
    border: none;
    cursor: pointer;
    transition: 0.3s ease; 
    font-weight: bold;
    color: var(--bg-color);
} 
.about_btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}


/* -------------------------------------------------------------------------- */
/* --- 4. SERVICES SECTION --- */ 
/* -------------------------------------------------------------------------- */
h1.service_section{ 
    margin-top: 15rem; 
    font-size: 50px; /* Adjusted section heading size */
    text-align: center; 
} 
h1.service_section span{ color: var(--accent-color); } 

div.card{ 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    margin: 70px auto; 
    flex-wrap: wrap; 
    max-width: 1200px; 
} 
.service_card{ 
    background-color: var(--card-color); 
    padding: 30px;
    border-radius: 10px;
    transition: .5s ease; 
    max-width: 350px; 
    min-height: 350px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
} 
.service_card:hover{ 
    border: 2px solid var(--accent-color); 
    background-color: var(--accent-color); 
    transform:translateY(-15px); 
    color: var(--bg-color);
} 
.service_card i{ 
    font-size: 45px; /* Increased icon size */
    color: var(--accent-color); 
    transition: color 0.5s ease; 
    margin-bottom: 15px;
} 

.service_card h2{ 
    font-size: 30px;
    margin-top: 10px;
    text-align: center;
    margin-bottom: 15px;
}
.service_card p{ 
    font-size: 15px; /* Slightly increased service card text size */
    line-height: 1.6;
    text-align: justify;
    color: var(--text-secondary);
}
.service_card:hover i { color: var(--bg-color); }
.service_card:hover h2, .service_card:hover p { color: var(--bg-color); }


/* -------------------------------------------------------------------------- */
/* --- 5. PROJECTS SECTION --- */
/* -------------------------------------------------------------------------- */

h1.port_section { 
    margin-top: 150px; 
    text-align: center; 
    font-size: 50px;
}

.project { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; 
    margin-top: 60px; 
}

.port_card { 
    width: 350px;
    background-color: var(--card-color); 
    border-radius: 10px;
    overflow: hidden;
}

.port_card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.content h1 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Project Buttons */
.project-btns {
    display: flex;
    gap: 10px;
}

.project-btns .btn {
    flex: 1;
    padding: 12px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    border: 2px solid var(--accent-color);
    text-align: center;
}

/* Live Demo */
.btn-live {
    background: var(--accent-color);
    color: black;
}
.btn-live:hover {
    background: transparent;
    color: var(--accent-color);
}

/* View Code */
.btn-code {
    background: transparent;
    color: var(--text-color);
    border-color: #777;
}
.btn-code:hover {
    background: #777;
    color: var(--accent-color);
}


/* -------------------------------------------------------------------------- */
/* --- 6. CONTACT SECTION --- */ 
/* -------------------------------------------------------------------------- */
#contact {
    background: linear-gradient(135deg, #2a2a2a, #3f3f3f);
    padding: 100px 20px; 
    text-align: center;
    margin: 50px 0 0 0; 
}
#contact .container { max-width: 800px; margin: 0 auto; }
#contact .header h3 { color: var(--accent-color); font-size: 20px;} /* Increased small heading size */
#contact .header h1 { font-size: 40px; margin-bottom: 30px; } /* Increased large heading size */
#contact .wrapper { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
#contact .grp { display: flex; align-items: center; justify-content: center; font-size: 19px; gap: 10px; color: var(--text-secondary);} /* Increased contact details size */
#contact .grp i { color: var(--accent-color); font-size: 26px; } /* Increased icon size */
#contact .footer p { font-size: 18px; margin-bottom: 10px; color: var(--text-secondary); }
#contact .footer a {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}
#contact .footer a:hover {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

/* Back to Top Button */
.back-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-align: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}
.back-top:hover {
    background-color: var(--bg-color);
    color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}


/* -------------------------------------------------------------------------- */
/* --- 7. MEDIA QUERIES (RESPONSIVENESS) --- */ 
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 820px) { 
    /* NAV BAR RESPONSIVE */
    nav { background-color: #000000; }
    .checkbtn { display: block; } 
    nav ul { 
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #000000;
        top: 65px;
        right: -100%; 
        text-align: center;
        transition: all .5s;
        display: block; 
    } 
    nav ul li {
        display: block;
        margin: 20px 0;
        line-height: 30px;
    }
    .contact_btn { 
        margin: 20px auto; 
        display: block;
        margin-left: auto;
    }
    .checkbox:checked ~ ul { right: 0; }

    /* HOME SECTION RESPONSIVE FIX */
    .home { 
        padding: 150px 20px 50px 20px; 
        flex-direction: column; 
        gap: 3rem; 
        align-items: center; 
        text-align: center;
    } 
    .home img{ 
        width: 250px; 
        height: 250px; 
    } 
    .description h1{ 
        font-size: 40px; 
    }
    .description h1 span{ 
        font-size: 50px; 
    } 
    .description h2{ 
        font-size: 28px;
    } 
    .description p{ 
        width: 100%; 
        max-width: 100%;
        font-size: 18px; 
    } 
    .font {
        display: flex;
        justify-content: center;
    }
    
    /* OTHER SECTIONS */
    .about { 
        margin: 50px 20px;
        padding-top: 50px;
    }
    .about_section h1 { font-size: 35px;}
    .about_section p { font-size: 16px;}


    h1.service_section{ margin-top: 50px; font-size: 40px;}

    /* PROJECTS SECTION RESPONSIVE */
    h1.port_section{
        font-size: 40px;
        margin-top: 50px; 
    }
    div.project{
        flex-direction: column; 
        align-items: center;
        padding: 0 20px;
    }
    .port_card{
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px; 
    }
    .port_card .content p{
        font-size: 15px;
    }

    /* CONTACT SECTION RESPONSIVE FIX */
    #contact .header h1 { font-size: 30px; }
    #contact .grp { font-size: 17px; }
}


/* -------------------------------------- */
/* RESPONSIVE */
/* -------------------------------------- */





@media (max-width: 820px){

    nav { background: #000; }
    .checkbtn { display: block; }
    nav ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: black;
        top: 65px;
        right: -100%;
        transition: 0.5s;
        display: block;
        text-align: center;
    }

    .home {
        flex-direction: column;
        padding: 150px 20px;
        text-align: center;
    }

    .project {
        flex-direction: column;
        padding: 0 20px;
    }

    .port_card {
        width: 100%;
    }
} 
