/* Global Styles */
:root {
    --primary-color: #0ef;
    --secondary-color: #1f242d;
    --text-color: #fff;
    --bg-color: #323946;
    --dark-bg: #1f242d;
    --light-bg: #323946;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.section-title {
    font-size: 5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5rem;
}

.section-title span {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--primary-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--primary-color);
    font-size: 1.6rem;
    color: var(--dark-bg);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    text-decoration: none;
    margin-top: 1rem;
}

.btn:hover {
    box-shadow: none;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--dark-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
}

header.sticky {
    background: var(--dark-bg);
    box-shadow: 0 .1rem 1rem rgba(0, 0, 0, .2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.navbar {
    display: flex;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 4rem;
}

.navbar ul li a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: .3s;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 2.5rem;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--dark-bg);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.hero-text h1 {
    font-size: 5.6rem;
    font-weight: 700;
    margin: -3px 0;
}

.hero-text h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

.hero-text h3 span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--primary-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: .5s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 1rem var(--primary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 35rem;
    height: 35rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper img {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: .2rem solid var(--primary-color);
    object-fit: cover;
}

.circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .2rem solid var(--dark-bg);
    border-bottom: .2rem solid var(--dark-bg);
    border-left: .2rem solid var(--primary-color);
    border-right: .2rem solid var(--primary-color);
    animation: spin 8s linear infinite;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* About Section */
.about {
    background: var(--light-bg);
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 35rem;
    border-radius: 1rem;
    box-shadow: 0 0 2rem var(--primary-color);
}

.about-text {
    flex: 1;
    max-width: 600px;
}

.about-text h3 {
    font-size: 3.6rem;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    font-size: 1.6rem;
}

.info-item span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Services Section */
.services {
    background: var(--dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--light-bg);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--dark-bg);
    transition: .5s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.service-icon {
    font-size: 7rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.read-more {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--dark-bg);
    font-weight: 600;
    transition: .5s ease;
    text-decoration: none;
}

.read-more:hover {
    background: var(--text-color);
    color: var(--dark-bg);
}

/* Skills Section */
.skills {
    background: var(--light-bg);
}

.skills-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-text {
    flex: 1;
    max-width: 500px;
}

.skills-text h3 {
    font-size: 3.6rem;
    margin-bottom: 1rem;
}

.skills-text p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.skills-progress {
    flex: 1;
    max-width: 600px;
    width: 100%;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-item h4 {
    font-size: 1.8rem;
    margin-bottom: .5rem;
    display: flex;
    justify-content: space-between;
}

.skill-item h4 span {
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 1rem;
    background: var(--dark-bg);
    border-radius: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 1rem;
    background: var(--primary-color);
    position: relative;
    animation: progressAnimation 2s ease-in-out forwards;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    animation: shine 2s infinite;
}

.html {
    width: 95%;
}

.css {
    width: 90%;
}

.js {
    width: 85%;
}

.react {
    width: 80%;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Projects Section */
.projects {
    background: var(--dark-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 0 1rem var(--dark-bg);
    display: flex;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--primary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.project-overlay p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.project-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--dark-bg);
    text-decoration: none;
    transition: .5s ease;
}

.project-link:hover {
    background: var(--dark-bg);
    color: var(--text-color);
}

/* Contact Section */
.contact {
    background: var(--light-bg);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5rem;
}

.contact-info {
    flex: 1;
    max-width: 500px;
}

.contact-info h3 {
    font-size: 3.6rem;
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.info-item i {
    width: 5rem;
    height: 5rem;
    background: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-right: 2rem;
}

.contact-form {
    flex: 1;
    max-width: 600px;
    width: 100%;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--dark-bg);
    border-radius: .8rem;
    border: none;
    outline: none;
}

.form-group textarea {
    resize: none;
    height: 20rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, .5);
}

/* Footer */
footer {
    background: var(--dark-bg);
    padding: 5rem 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about {
    flex: 1;
    max-width: 400px;
}

.footer-about h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-about p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.footer-links {
    flex: 1;
    max-width: 200px;
}

.footer-links h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    font-size: 1.6rem;
    color: var(--text-color);
    text-decoration: none;
    transition: .3s;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: .1rem solid rgba(255, 255, 255, .1);
}

.footer-bottom p {
    font-size: 1.6rem;
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: .5s;
    z-index: 99;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--text-color);
    box-shadow: 0 0 1rem var(--primary-color);
}

/* Typed Text Animation */
.typed-text {
    color: var(--primary-color);
    position: relative;
}

.typed-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    section {
        padding: 10rem 3% 2rem;
    }
    
    .hero {
        padding-bottom: 7rem;
    }
    
    .contact {
        min-height: auto;
    }
    
    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 3%;
        background: var(--dark-bg);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        transition: .3s;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
    }
    
    .navbar ul li {
        margin: 2rem 0;
    }
    
    .hero-text h1 {
        font-size: 5rem;
    }
    
    .hero-image {
        margin-top: 5rem;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .skills-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .hero-text h3 {
        font-size: 2.6rem;
    }
    
    .image-wrapper {
        width: 25rem;
        height: 25rem;
    }
}