:root {
    --primary: #38bdf8;
    --primary-dark: #0ea5e9;
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.7);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* navbar */

header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h2 {
    color: white;
}

nav h2 a {
    text-decoration: none;
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
}

nav ul li a:hover {
    color: #38bdf8;
}

/* hero section */

#hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(40px);
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.pre-title {
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 35px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    background-color: var(--primary);
    color: #000;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--glass-border);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

.scroll-indicator span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* about section */

#about {
    background-color: #020617;
    padding: 60px 20px;
}

#about .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

#about .left {
    flex: 1;
}

#about .left img {
    width: 100%;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    max-width: 400px;
    transition: transform 0.3s ease;
}

#about .left img:hover {
    transform: scale(1.02);
}

#about .right {
    flex: 1;
    max-width: 500px;
}

.right h2 {
    color: white;
    font-size: 48px;
    margin-bottom: 15px;
}

.right p {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.right .btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* PORTFOLIO SECTION  */

#projects {
    background: #020617;
    padding: 60px 20px;
}

#projects h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

#projects .container {
    max-width: 1100px;
    margin: auto;
}

#projects a {
    text-decoration: none;
}

#projects .card {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#projects .card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.coming-soon {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border: 1px dashed var(--glass-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
}

.coming-soon p {
    color: var(--text-muted);
    font-style: italic;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.coming-soon i {
    color: var(--primary);
}

#projects .card.reverse {
    flex-direction: row-reverse;
}

#projects .img {
    flex: 1;
}

#projects img {
    width: 100%;
    border-radius: 10px;
}

#projects .content {
    flex: 1;
    max-width: 500px;
}

#projects .content h3 {
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
}

#projects .content p {
    color: #94a3b8;
    margin-bottom: 15px;
    line-height: 1.6;
}
#projects .content .btns {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* SERVICE SECTION  */

#services {
    background: #020617;
    padding: 60px 20px;
    color: white;
}

#services .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

#services h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

#services .service-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#services .service-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

#services .service-card h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

#services .service-card p {
    color: #94a3b8;
    font-size: 14px;
}

#services .service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.1);
    transform: translateY(-10px);
}

/* EXPERIENCE SECTION */

#experience {
    background: #020617;
    padding: 60px 20px;
    color: white;
}

#experience h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

#experience .container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.category h3 {
    margin-bottom: 15px;
    color: #38bdf8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.skill {
    background: var(--bg-card);
    padding: 25px 15px;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.skill img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.skill i {
    font-size: 35px;
    color: #38bdf8;
}

.skill p {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.skill:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0px 5px 15px rgba(56, 189, 248, 0.3);
}

/* CONTACT SECTION */

#contact {
    background: #020617;
    padding: 60px 20px;
    color: white;
}

#contact h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

#contact .container {
    max-width: 1100px;
    margin: auto;

    display: flex;
    gap: 40px;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #94a3b8;
}

.contact-form {
    flex: 1;
    width: 100%;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid transparent;

    background: #0f172a;
    color: white;

    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #38bdf8;
}

.contact-form .btn {
    align-self: flex-start;
}

/* FOOTER SECTION */

#footer {
    background: #020617;
    padding: 30px 20px;
    text-align: center;
}

#footer p {
    color: #94a3b8;
    margin-bottom: 15px;
    font-size: 14px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
}

/* responsive for mobile */

@media (max-width: 992px) {
    header {
        padding: 15px 30px;
    }

    #about .container {
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        background-color: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        width: 100%;
        height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        gap: 40px;
    }

    nav ul.active {
        left: 0;
    }

    nav h2 {
        z-index: 1001;
    }

    nav ul li a {
        font-size: 24px;
        font-weight: 500;
        letter-spacing: 1px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    #about .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    #about .left img {
        max-width: 280px;
        margin: 0 auto;
    }

    .right .btns {
        justify-content: center;
    }

    #projects .card, #projects .card.reverse {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 25px;
    }

    #projects .img, #projects .content {
        max-width: 100%;
    }

    #contact .container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .contact-form .btn {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-btns, .right .btns, #projects .content .btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 20px auto 0;
    }

    .hero-btns .btn, .right .btns .btn, #projects .content .btns .btn {
        width: 100%;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .skill img {
        width: 35px;
        height: 35px;
    }

    .skill i {
        font-size: 30px;
    }

    #projects h2, #services h2, #experience h2, #contact h2 {
        font-size: 28px;
    }
}

@media (max-width: 360px) {
    #about, #projects, #services, #experience, #contact, #footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .right h2 {
        font-size: 36px;
    }
}

body.no-scroll {
    overflow: hidden;
}