@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans: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: 'Plus Jakarta Sans', sans-serif;
}

:root {
    --bg-color: #0b0f19;
    --second-bg-color: #111827;
    --card-bg: #1f2937;
    --text-color: #f3f4f6;
    --sub-text: #9ca3af;
    --main-color: #38bdf8;
    --main-glow: rgba(56, 189, 248, 0.3);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: auto;
    padding: 7rem 8% 4rem;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 8%;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 2.2rem;
    color: var(--text-color);
    font-weight: 700;
}

.logo span {
    color: var(--main-color);
}

.navbar a {
    font-size: 1.5rem;
    color: var(--sub-text);
    margin-left: 3rem;
    transition: .3s;
    font-weight: 500;
}

.navbar a:hover, .navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 2.8rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* HOME */
.home {
    min-height: 90vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    padding-top: 12rem;
}

.home-content {
    max-width: 55rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--main-color);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50rem;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.home-content h1 {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.8rem;
}

.home-content h3 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.home-content p {
    font-size: 1.5rem;
    color: var(--sub-text);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: var(--second-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    font-size: 2rem;
    color: var(--main-color);
    margin-right: 1.2rem;
    margin-bottom: 2rem;
    transition: .3s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 0 1.2rem var(--main-glow);
}

.btn-group {
    display: flex;
    gap: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.4rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    box-shadow: 0 0 1.2rem var(--main-glow);
    font-size: 1.5rem;
    color: var(--bg-color);
    font-weight: 700;
    transition: .3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.4rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.8rem;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    transition: .3s ease;
}

.btn-secondary:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.home-img .img-box {
    width: 28vw;
    max-width: 340px;
    overflow: hidden;
    animation: floatImage 4s ease-in-out infinite;
}

.home-img img {
    width: 100%;
    display: block;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1rem); }
}

/* ABOUT */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 25vw;
    max-width: 320px;
    border-radius: 1.5rem;
}

.heading {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}

.heading span {
    color: var(--main-color);
}

.about-content h2 {
    text-align: left;
}

.about-content h3 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 1.2rem;
}

.about-content p {
    font-size: 1.5rem;
    color: var(--sub-text);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
}

.stat-box h3 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.stat-box p {
    font-size: 1.3rem;
    margin: 0;
}

/* SKILLS & SERVICES */
.skills-container, .services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.skills-box, .services-box {
    background: var(--second-bg-color);
    padding: 3rem 2.2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: .3s ease;
}

.skills-box:hover, .services-box:hover {
    border-color: var(--main-color);
    transform: translateY(-4px);
    box-shadow: 0 0.8rem 2rem rgba(0,0,0,0.25);
}

.skills-box i, .services-box i {
    font-size: 3.8rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.skills-box h3, .services-box h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.skills-box p, .services-box p {
    font-size: 1.4rem;
    color: var(--sub-text);
    line-height: 1.5;
}

/* PORTFOLIO */
.portfolio {
    background: var(--second-bg-color);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-box {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

.portfolio-box:hover img {
    transform: scale(1.08);
}

.portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 15, 25, 0.7), rgba(11, 15, 25, 0.95));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 2rem;
    transform: translateY(100%);
    transition: .3s ease;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.portfolio-layer p {
    font-size: 1.3rem;
    color: var(--sub-text);
    margin: .5rem 0 1.2rem;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--main-color);
    border-radius: 50%;
    color: var(--bg-color);
    font-size: 1.6rem;
    transition: .3s;
}

.portfolio-layer a:hover {
    transform: scale(1.1);
}

/* CONTACT */
.contact form {
    max-width: 60rem;
    margin: 2.5rem auto 0;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.contact form input, .contact form textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0.6rem 0;
    transition: .3s;
}

.contact form input:focus, .contact form textarea:focus {
    border-color: var(--main-color);
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    width: 100%;
    margin-top: 0.8rem;
    cursor: pointer;
}

/* FOOTER */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 8%;
    background: var(--second-bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text p {
    font-size: 1.4rem;
    color: var(--sub-text);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 0.8rem;
    color: var(--main-color);
    transition: .3s;
}

.footer-iconTop a:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
    html { font-size: 58%; }
}

@media (max-width: 991px) {
    .header { padding: 1.5rem 4%; }
    section { padding: 6rem 4% 3rem; }
    .home { flex-direction: column; text-align: center; justify-content: center; min-height: auto; padding-top: 10rem; }
    .home-content { max-width: 100%; }
    .home-img .img-box { width: 50vw; margin: 2rem auto 0; }
    .btn-group { justify-content: center; }
    .social-media a { margin: 0 0.6rem 2rem; }
    .about { flex-direction: column-reverse; text-align: center; }
    .about-content h2 { text-align: center; }
    .about-stats { justify-content: center; }
    .skills-container, .services-container, .portfolio-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    #menu-icon { display: block; }
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1.5rem 4%;
        background: var(--bg-color);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: none;
        flex-direction: column;
        text-align: center;
    }
    .navbar.active { display: flex; }
    .navbar a { display: block; margin: 1.2rem 0; font-size: 1.6rem; }
    .skills-container, .services-container, .portfolio-container { grid-template-columns: 1fr; }
    .contact form .input-box { flex-direction: column; gap: 0; }
}