@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; text-decoration: none; border: none; outline: none; scroll-behavior: smooth; font-family: 'Poppins', sans-serif; }

:root {
    --bg-color: #080808; 
    --second-bg-color: #131313; 
    --text-color: #fff;
    --main-color: #00eeff; 
    --glass-bg: rgba(0, 0, 0, 0.85);
    --header-bg: rgba(10, 10, 10, 0.85);
}

html { font-size: 62.5%; overflow-x: hidden; }
body { background: var(--bg-color); color: var(--text-color); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--main-color); border-radius: 10px; }

/* HEADER */
.header {
    position: fixed; top: 20px; left: 0; width: 100%;
    display: flex; justify-content: center; z-index: 1000; padding: 0 2%;
    animation: slideDown 0.8s ease forwards;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }

.header-pill {
    background: var(--header-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 8px solid rgba(6, 227, 243, 0.507); width: 100%; max-width: 1100px;
    padding: 1.2rem 3rem; border-radius: 100px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 1px rgba(0,238,255,0.2);
    transition: box-shadow 0.3s;
}
.header-pill:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 20px rgba(0,238,255,0.1); }

.logo { font-size: 2.2rem; color: #fff; font-weight: 700; }
.logo span { color: var(--main-color); }

.navbar a { 
    font-size: 1.5rem; color: rgba(255,255,255,0.8); margin-left: 2.5rem; font-weight: 500; 
    transition: color .3s; position: relative;
}
.navbar a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--main-color);
    transition: width 0.3s ease; border-radius: 2px;
}
.navbar a:hover::after, .navbar a.active::after { width: 100%; }
.navbar a:hover, .navbar a.active { color: var(--main-color); }

.header-right { display: flex; align-items: center; gap: 1.5rem; }

.get-started-btn {
    border: 1.5px solid var(--main-color); color: var(--main-color);
    padding: 0.8rem 2rem; border-radius: 50px; font-size: 1.4rem; font-weight: 600; 
    transition: background .3s, color .3s, box-shadow .3s, transform .2s;
}
.get-started-btn:hover { background: var(--main-color); color: #000; box-shadow: 0 0 20px rgba(0,238,255,0.5); transform: translateY(-2px); }

#menu-icon { font-size: 2.8rem; color: #fff; display: none; cursor: pointer; transition: color 0.3s, transform 0.3s; z-index: 1001; }
#menu-icon:hover { color: var(--main-color); }

/* SECTIONS */
section { min-height: 100vh; padding: 10rem 9% 5rem; }
.heading { text-align: center; font-size: 4.5rem; margin-bottom: 3rem; }
.heading span { color: var(--main-color); }

/* HOME */
.home { display: flex; align-items: center; gap: 5rem; padding-top: 12rem; }
.home-content { animation: fadeInLeft 1s ease 0.3s both; }
.home-content h3 { font-size: 2.8rem; animation: fadeInLeft 1s ease 0.2s both; }
.home-content h1 { 
    font-size: 5rem; line-height: 1.2; animation: fadeInLeft 1s ease 0.4s both;
    background: linear-gradient(135deg, #fff 60%, var(--main-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.home-content p { font-size: 1.6rem; margin: 2rem 0; color: rgba(255,255,255,0.75); line-height: 1.8; }
.social-media { margin-bottom: 2.5rem; }
.social-media a {
    display: inline-flex; width: 4.2rem; height: 4.2rem; border: 2px solid var(--main-color);
    border-radius: 50%; justify-content: center; align-items: center;
    color: var(--main-color); font-size: 2rem; margin-right: 1.5rem; 
    transition: background .3s, color .3s, box-shadow .3s, transform .3s;
}
.social-media a:hover { background: var(--main-color); color: #000; box-shadow: 0 0 25px var(--main-color); transform: translateY(-4px) scale(1.1); }

.btn { display: inline-block; padding: 1.2rem 2.8rem; background: var(--main-color); border-radius: 4rem; color: #000; font-size: 1.6rem; font-weight: 600; transition: box-shadow .3s, transform .3s; }
.btn:hover { box-shadow: 0 0 25px rgba(0,238,255,0.6); transform: translateY(-3px); }

.home-img { animation: fadeInRight 1s ease 0.5s both; }
.home-img img { 
    width: 30vw; border-radius: 50%; border: 4px solid var(--main-color); 
    box-shadow: 0 0 30px rgba(0,238,255,0.4), 0 0 80px rgba(0,238,255,0.1); 
    animation: float 4s infinite ease-in-out; transition: box-shadow 0.3s;
}
.home-img img:hover { box-shadow: 0 0 50px rgba(0,238,255,0.6), 0 0 100px rgba(0,238,255,0.2); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ABOUT */
.about { background: var(--second-bg-color); padding: 6rem 9%; display: flex; justify-content: center; align-items: center; min-height: auto; }
.about-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; max-width: 1200px; align-items: center; }
.about-left { text-align: left; }
.pill-badge { color: var(--main-color); border: 1px solid var(--main-color); padding: 5px 15px; border-radius: 50px; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 2rem; }
.about-left .heading { text-align: left; font-size: 5rem; margin-bottom: 0; }
.about-right { text-align: left; border-left: 2px solid rgba(0,238,255,0.2); padding-left: 4rem; }
.about-right h3 { font-size: 2.6rem; color: #fff; margin-bottom: 1.5rem; }
.about-right p { font-size: 1.6rem; line-height: 1.8; color: #ccc; margin-bottom: 3rem; }
.about-btn-wrapper { display: flex; justify-content: flex-start; }

/* SKILLS */
.skills { padding: 6rem 9% 4rem; }
.skills-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.skill-bar { margin-bottom: 2rem; }
.skill-bar .info { display: flex; justify-content: space-between; font-size: 1.6rem; margin-bottom: 0.5rem; }
.skill-bar .bar { width: 100%; height: 1rem; background: #2a2a2a; border-radius: 10px; overflow: hidden; }
.skill-bar .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--main-color), #00a8b5); width: 0; transition: width 1.5s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 0 12px var(--main-color); border-radius: 10px; }

/* SERVICES */
.services { background: var(--second-bg-color); padding: 6rem 9% 4rem; min-height: auto; }
.services-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.service-box { background: var(--bg-color); padding: 3rem 2rem; border-radius: 2rem; text-align: center; border: 1px solid rgba(255,255,255,0.07); transition: border-color .4s, transform .4s, box-shadow .4s; position: relative; overflow: hidden; }
.service-box::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--main-color), transparent); transition: left 0.5s ease; }
.service-box:hover::before { left: 100%; }
.service-box:hover { border-color: var(--main-color); transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,238,255,0.15); }
.service-box i { font-size: 4rem; color: var(--main-color); margin-bottom: 2rem; display: block; transition: transform 0.3s; }
.service-box:hover i { transform: scale(1.2) rotate(5deg); }
.service-box h3 { font-size: 2.2rem; margin-bottom: 1.5rem; }
.service-box p { font-size: 1.5rem; line-height: 1.8; color: #ccc; }

/* PORTFOLIO & CERTIFICATES */
.portfolio, .certificates { padding: 6rem 9% 4rem; }
.portfolio-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.portfolio-box { position: relative; border-radius: 2rem; overflow: hidden; height: 250px; border: 1px solid rgba(255,255,255,0.07); display: flex; transition: border-color .4s, transform .4s, box-shadow .4s; }
.portfolio-box:hover { border-color: var(--main-color); transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,238,255,0.15); }
.portfolio-box img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.portfolio-box:hover img { transform: scale(1.08); }
.portfolio-layer { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: center; align-items: center; transform: translateY(100%); transition: transform .4s cubic-bezier(0.4,0,0.2,1); }
.portfolio-box:hover .portfolio-layer { transform: translateY(0); }
.portfolio-layer h4 { font-size: 2rem; color: var(--main-color); }
.portfolio-layer i { font-size: 2rem; color: #000; background: var(--main-color); padding: 1rem; border-radius: 50%; margin-top: 1rem; transition: transform 0.3s; }
.portfolio-layer i:hover { transform: scale(1.15); }

/* CONTACT */
.contact { padding: 6rem 9% 4rem; }
.contact form { max-width: 70rem; margin: auto; }
.input-box { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.input-box input, textarea { width: 100%; padding: 1.5rem; background: var(--second-bg-color); color: #fff; border-radius: 1rem; font-size: 1.6rem; margin-top: 1rem; border: 1px solid rgba(255,255,255,0.07); transition: border-color 0.3s, box-shadow 0.3s; }
.input-box input:focus, textarea:focus { border-color: var(--main-color); box-shadow: 0 0 15px rgba(0,238,255,0.1); }
.input-box input { width: 48.5%; }
textarea { resize: vertical; min-height: 150px; }

/* FOOTER */
.footer { display: flex; justify-content: space-between; align-items: center; padding: 2rem 9%; background: var(--second-bg-color); font-size: 1.4rem; }
.footer-iconTop a { background: var(--main-color); color: #000; padding: 0.8rem; border-radius: 0.8rem; transition: box-shadow 0.3s, transform 0.3s; }
.footer-iconTop a:hover { box-shadow: 0 0 15px rgba(0,238,255,0.5); transform: translateY(-3px); }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* WHATSAPP */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; box-shadow: 0 4px 15px rgba(37,211,102,0.4); z-index: 999; transition: transform .3s, box-shadow .3s; animation: pulse 2s infinite; }
.whatsapp-float:hover { transform: scale(1.15); box-shadow: 0 6px 25px rgba(37,211,102,0.7); }
@keyframes pulse { 0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,0.8); } }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    html { font-size: 55%; }
    
    .header { top: 12px; padding: 0 3%; }
    .header-pill { 
        padding: 1.2rem 2rem; 
        border-radius: 20px;
        position: relative;
    }
    
    #menu-icon { display: block; }
    .get-started-btn { display: none; }
    
    /* MOBILE NAVBAR - smooth slide */
    .navbar {
        position: absolute; 
        top: calc(100% + 8px); 
        left: 0; 
        width: 100%;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(0,238,255,0.15);
        border-radius: 16px;
        display: flex;
        flex-direction: column; 
        padding: 0 2rem;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
        box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    }
    
    .navbar.active { 
        max-height: 500px; 
        opacity: 1; 
        pointer-events: all;
        padding: 1.5rem 2rem;
    }
    
    .navbar a { 
        margin: 0;
        padding: 1.3rem 0.5rem;
        font-size: 1.8rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transition: color 0.3s, padding-left 0.3s;
    }
    .navbar a:last-child { border-bottom: none; }
    .navbar a:hover, .navbar a.active { padding-left: 1rem; }
    .navbar a::after { display: none; }

    /* REDUCED SECTION GAPS */
    section { padding: 8rem 5% 3rem; min-height: auto; }
    .home { min-height: 100vh; }
    .home { flex-direction: column-reverse; text-align: center; gap: 1.5rem; padding-top: 7rem; padding-bottom: 3rem; }
    .home-img img { width: 55vw; }
    .home-content h1 { font-size: 3.5rem; }
    .home-content h3 { font-size: 2.2rem; }
    .social-media { display: flex; justify-content: center; }

    .about { padding: 4rem 5%; min-height: auto; }
    .about-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .about-left, .about-right { text-align: center; border-left: none; padding-left: 0; }
    .about-left .heading { text-align: center; }
    .about-btn-wrapper { justify-content: center; }

    .skills { padding: 4rem 5%; min-height: auto; }
    .skills-container { grid-template-columns: 1fr; }

    .services { padding: 4rem 5%; min-height: auto; }
    .services-container { grid-template-columns: 1fr; }

    .portfolio, .certificates { padding: 4rem 5%; min-height: auto; }
    .portfolio-container { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .portfolio-box { height: 180px; }

    .contact { padding: 4rem 5%; min-height: auto; }
    .input-box input { width: 100%; }

    .heading { font-size: 3.5rem; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 26px; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    html { font-size: 50%; }
    .home-img img { width: 72vw; }
    .portfolio-container { grid-template-columns: 1fr; }
}
