/* ===========================
   GOOGLE FONT
=========================== */

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

:root {

    --primary: #00bcd4;
    --secondary: #7c4dff;

    --dark: #0f172a;
    --dark2: #1e293b;

    --light: #ffffff;

    --gray: #94a3b8;

    --glass: rgba(255, 255, 255, 0.08);

    --shadow: 0 10px 30px rgba(0, 0, 0, .2);

}

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

body {
    background: var(--dark);
    color: white;
    overflow-x: hidden;
}

/* ===========================
   SCROLL BAR
=========================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
}

/* ===========================
   PROGRESS BAR
=========================== */

#progressBar {

    position: fixed;

    top: 0;

    left: 0;

    height: 5px;

    background: linear-gradient(90deg,
            var(--primary),
            var(--secondary));

    width: 0%;

    z-index: 99999;

}

/* ===========================
   NAVBAR
=========================== */

header {

    position: sticky;

    top: 0;

    z-index: 1000;

    backdrop-filter: blur(15px);

    background: rgba(0, 0, 0, .3);

}

.navbar {

    max-width: 1400px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px 5%;

}

.logo {

    font-size: 2rem;

    font-weight: 700;

    color: var(--primary);

}

.nav-menu {

    display: flex;

    gap: 30px;

    list-style: none;

}

.nav-menu a {

    text-decoration: none;

    color: white;

    font-weight: 500;

    transition: .3s;

}

.nav-menu a:hover {

    color: var(--primary);

}

.nav-btns {

    display: flex;

    align-items: center;

    gap: 15px;

}

.resume-btn {

    padding: 12px 22px;

    background: linear-gradient(45deg,
            var(--primary),
            var(--secondary));

    border-radius: 40px;

    text-decoration: none;

    color: white;

    font-weight: 600;

}

#themeBtn {

    width: 45px;

    height: 45px;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    background: var(--glass);

    color: white;

    font-size: 18px;

}

/* ===========================
   HERO SECTION
=========================== */

.hero {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 100px 10%;

    gap: 100px;

}

.hero-left {

    flex: 1;

}

.hero-left h4 {

    font-size: 22px;

    color: var(--primary);

    margin-bottom: 15px;

}

.hero-left h1 {

    font-size: 70px;

    font-weight: 800;

    line-height: 1.1;

    margin-bottom: 15px;

}

.hero-left h2 {

    height: 60px;

    font-size: 32px;

    color: var(--secondary);

}

.hero-left p {

    max-width: 650px;

    line-height: 1.8;

    font-size: 18px;

    color: #cbd5e1;

    margin: 25px 0;

}

.hero-buttons {

    display: flex;

    gap: 20px;

    margin-top: 20px;

}

.primary-btn {

    padding: 15px 35px;

    border-radius: 50px;

    background: linear-gradient(45deg,
            var(--primary),
            var(--secondary));

    text-decoration: none;

    color: white;

    font-weight: 600;

}

.secondary-btn {

    padding: 15px 35px;

    border-radius: 50px;

    border: 2px solid var(--primary);

    text-decoration: none;

    color: white;

    font-weight: 600;

}

.social-icons {

    margin-top: 35px;

    display: flex;

    gap: 20px;
    margin-left: 70px

}

.social-icons a {

    width: 50px;

    height: 50px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 50%;

    background: var(--glass);

    color: white;

    font-size: 20px;

    transition: .4s;

}

.social-icons a:hover {

    transform: translateY(-8px);

    background: var(--primary);

}

.hero-right {

    flex: 1;

    display: flex;

    justify-content: center;

}

/* ===========================
   PROFILE CARD
=========================== */

.profile-card {

    width: 420px;

    height: 420px;

    border-radius: 50%;

    padding: 10px;

    background: linear-gradient(45deg,
            var(--primary),
            var(--secondary));

    animation: float 4s ease-in-out infinite;

}

.profile-card img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 50%;

}

@keyframes float {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }

}

/* ===========================
   SECTION TITLE
=========================== */

.section-title {

    text-align: center;

    font-size: 45px;

    margin-bottom: 60px;

    position: relative;

}

.section-title::after {

    content: "";

    position: absolute;

    width: 100px;

    height: 5px;

    background: var(--primary);

    bottom: -15px;

    left: 50%;

    transform: translateX(-50%);

    border-radius: 20px;

}


/* ===========================
   STATS SECTION
=========================== */

.stats {
    padding: 80px 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    transition: .4s;
    box-shadow: var(--shadow);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card h2 {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-card p {
    color: #cbd5e1;
}

/* ===========================
   WHY ME
=========================== */

.why-me {
    padding: 100px 10%;
}

.why-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.why-card {
    background: rgba(255, 255, 255, .05);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    transition: .4s;
}

.why-card:hover {
    transform: translateY(-12px);
}

.why-card i {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
}

.why-card h3 {
    margin-bottom: 15px;
}

.why-card p {
    color: #cbd5e1;
    line-height: 1.8;
}

/* ===========================
   PROJECTS
=========================== */

.featured {
    padding: 100px 10%;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, .05);
    border-radius: 20px;
    overflow: hidden;
    transition: .4s;
}

.project-card:hover {
    transform: translateY(-12px);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    margin-bottom: 15px;
}

.project-content p {
    color: #cbd5e1;
    margin-bottom: 15px;
}

.project-content a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

/* ===========================
   VIDEO
=========================== */

.video-section {
    padding: 100px 10%;
}

.video-section iframe {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

/* ===========================
   CTA
=========================== */

.cta {
    padding: 100px 10%;
    text-align: center;
}

.cta h2 {
    font-size: 50px;
    margin-bottom: 20px;
}

.cta p {
    color: #cbd5e1;
    margin-bottom: 30px;
}

/* ===========================
   ABOUT PAGE
=========================== */

.about {
    padding: 100px 10%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
}

.about-content h2 {
    font-size: 45px;
    margin-bottom: 20px;
}

.about-content p {
    line-height: 1.9;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.timeline {
    margin-top: 40px;
}

.timeline-item {
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, .05);
    border-left: 5px solid var(--primary);
    border-radius: 10px;
}

/* ===========================
   SKILLS PAGE
=========================== */

.skills {
    padding: 100px 10%;
}

.skill-box {
    margin-bottom: 30px;
}

.skill-box h4 {
    margin-bottom: 10px;
}

.progress {
    height: 20px;
    background: #1e293b;
    border-radius: 20px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg,
            var(--primary),
            var(--secondary));
}

/* ===========================
   SERVICES PAGE
=========================== */

.services {
    padding: 100px 10%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: rgba(255, 255, 255, .05);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    transition: .4s;
}

.service-card:hover {
    transform: translateY(-12px);
}

.service-card i {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ===========================
   GALLERY
=========================== */

.gallery {
    padding: 100px 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
    transition: .4s;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* ===========================
   FORMS
=========================== */

.form-section {
    padding: 100px 10%;
    max-width: 900px;
    margin: auto;
}

.form-container {
    background: rgba(255, 255, 255, .05);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {

    width: 100%;
    padding: 15px;
    border: none;
    outline: none;
    border-radius: 10px;
    background: #1e293b;
    color: white;

}

.form-group textarea {
    resize: none;
    height: 180px;
}

.submit-btn {

    padding: 15px 35px;
    border: none;
    cursor: pointer;
    border-radius: 50px;

    background: linear-gradient(45deg,
            var(--primary),
            var(--secondary));

    color: white;
    font-weight: 600;
}

/* ===========================
   CONTACT PAGE
=========================== */

.contact {
    padding: 100px 10%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background: rgba(255, 255, 255, .05);
    padding: 35px;
    border-radius: 20px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #cbd5e1;
}

.map iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 20px;
}

/* ===========================
   FOOTER
=========================== */

footer {
    padding: 50px 10%;
    background: #020617;
    text-align: center;
    margin-top: 80px;
}

.footer-content h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.footer-content p {
    color: #cbd5e1;
}

.footer-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
    text-decoration: none;
    color: white;
}

.copyright {
    margin-top: 20px;
    color: #94a3b8;
}

/* ===========================
   TOP BUTTON
=========================== */

#topBtn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: none;
    z-index: 999;
}

/* ===========================
   DARK MODE
=========================== */

body.light {
    background: #f8fafc;
    color: #111827;
}

body.light .navbar {
    background: white;
}

body.light .nav-menu a {
    color: #111827;
}

body.light .stat-card,
body.light .why-card,
body.light .project-card,
body.light .service-card,
body.light .contact-info,
body.light .form-container {
    background: white;
    color: #111827;
}

body.light p {
    color: #475569;
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:1200px) {

    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-left p {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

}

@media(max-width:992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-left h1 {
        font-size: 55px;
    }

    .section-title {
        font-size: 38px;
    }

}

@media(max-width:768px) {

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        padding: 80px 5%;
    }

    .hero-left h1 {
        font-size: 42px;
    }

    .hero-left h2 {
        font-size: 25px;
    }

    .profile-card {
        width: 300px;
        height: 300px;
    }

    .cta h2 {
        font-size: 35px;
    }

}

@media(max-width:480px) {

    .hero-left h1 {
        font-size: 34px;
    }

    .hero-left p {
        font-size: 15px;
    }

    .primary-btn,
    .secondary-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .profile-card {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 30px;
    }

}
