:root {
    --bg-color: #000;
    --second-bg-color: #0a0a0a;
    --text-color: #fff;
    --text-secondary: #ccc;
    --main-color: rgb(40, 137, 158);
    --main-color-light: rgb(87, 199, 199);
    --border-color: rgba(40, 137, 158, 0.3);
    --card-bg: rgba(40, 137, 158, 0.1);
}

.light-mode {
    --bg-color: #f5f5f5;
    --second-bg-color: #fff;
    --text-color: #000;
    --text-secondary: #555;
    --border-color: rgba(40, 137, 158, 0.5);
    --card-bg: rgba(40, 137, 158, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.light-mode .header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar {
    display: flex;
    gap: 35px;
}

.navbar a {
    font-size: 18px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: calc(0.2s * var(--i));
}

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

.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 22px;
    color: var(--main-color);
}

.theme-toggle:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: rotate(180deg);
}

.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--main-color);
}

/* Home Section */
.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 10% 50px;
    gap: 50px;
}

.home-content {
    max-width: 600px;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 0.7s;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: 10px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
    background: linear-gradient(45deg, var(--main-color), var(--main-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: 0.7s;
}

.home-content h3 span {
    color: var(--main-color);
}

.home-content p {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.5s;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.tech-stack {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 1.8s;
}

.tech-badge {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--main-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--main-color-light);
    transition: 0.3s;
}

.tech-badge:hover {
    background: rgba(40, 137, 158, 0.3);
    transform: translateY(-3px);
}

.home-img img {
    max-width: 450px;
    width: 100%;
    height: auto;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 1s;
    border-radius: 50%;
    border: 5px solid var(--main-color);
    box-shadow: 0 0 50px var(--main-color);
}

.social-media {
    margin: 30px 0;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid var(--main-color-light);
    border-radius: 50%;
    font-size: 22px;
    color: var(--main-color);
    text-decoration: none;
    box-shadow: 0 0 20px rgba(70, 156, 156, 0.5);
    margin: 0 14px 0 0;
    transition: 0.5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(0.2s * var(--i));
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 30px var(--main-color);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--main-color);
    border-radius: 40px;
    box-shadow: 0 0 10px var(--main-color);
    text-decoration: none;
    color: var(--bg-color);
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    transition: 0.3s;
    margin-right: 15px;
    margin-bottom: 10px;
}

.btn:hover {
    box-shadow: 0 0 25px var(--main-color);
    transform: translateY(-3px);
}

/* About Section */
.about {
    min-height: 100vh;
    padding: 100px 10%;
    background: var(--second-bg-color);
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--main-color);
    text-shadow: 0 0 20px rgba(40, 137, 158, 0.5);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-img {
    flex: 1;
    min-width: 300px;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 30px rgba(40, 137, 158, 0.3);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--main-color-light);
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.experience-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.exp-item {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--main-color);
    transition: 0.3s;
}

.exp-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(40, 137, 158, 0.3);
}

.exp-item h3 {
    font-size: 32px;
    color: var(--main-color);
    margin-bottom: 5px;
}

.exp-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Skills Section */
.skills {
    min-height: 100vh;
    padding: 100px 10%;
    background: var(--bg-color);
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
}

.skills-content {
    display: none;
}

.skills-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--main-color);
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(40, 137, 158, 0.4);
}

.skill-card i {
    font-size: 48px;
    color: var(--main-color);
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--main-color-light);
}

.skill-progress {
    margin-top: 15px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.light-mode .progress-bar {
    background: rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--main-color), var(--main-color-light));
    border-radius: 10px;
    transition: width 1s ease;
}

/* Projects Section */
.projects {
    min-height: 100vh;
    padding: 100px 10%;
    background: var(--second-bg-color);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--main-color);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(40, 137, 158, 0.4);
}

.project-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay a {
    width: 45px;
    height: 45px;
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    font-size: 20px;
    transition: 0.3s;
}

.project-overlay a:hover {
    background: var(--main-color-light);
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--main-color-light);
}

.project-info p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 5px 12px;
    background: rgba(40, 137, 158, 0.2);
    border-radius: 15px;
    font-size: 12px;
    color: var(--main-color);
}

/* Contact Section */
.contact {
    min-height: 100vh;
    padding: 100px 10%;
    background: var(--bg-color);
}

.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.hire-cta {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--main-color);
    margin-bottom: 30px;
}

.hire-cta h3 {
    font-size: 28px;
    color: var(--main-color-light);
    margin-bottom: 15px;
}

.hire-cta p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.hire-cta ul {
    list-style: none;
    margin-bottom: 20px;
}

.hire-cta ul li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.hire-cta ul li i {
    color: var(--main-color);
    margin-right: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--main-color);
    transition: 0.3s;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(40, 137, 158, 0.3);
}

.contact-item i {
    font-size: 32px;
    color: var(--main-color);
}

.contact-item-text h3 {
    color: var(--main-color-light);
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-item-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 2px solid var(--main-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 16px;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(40, 137, 158, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--main-color);
    border: none;
    border-radius: 40px;
    color: var(--bg-color);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    box-shadow: 0 0 25px var(--main-color);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--second-bg-color);
    padding: 30px 10%;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
}

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

.footer-links a {
    color: var(--main-color);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--main-color-light);
}

/* Animations */
@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 99;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--main-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        background: var(--second-bg-color);
        flex-direction: column;
        padding: 30px;
        border-radius: 10px 0 0 10px;
        box-shadow: -5px 5px 30px rgba(40, 137, 158, 0.3);
        transition: 0.3s;
    }

    .navbar.active {
        right: 0;
    }

    .navbar a {
        margin: 15px 0;
    }

    .home {
        flex-direction: column-reverse;
        padding: 100px 5% 50px;
    }

    .home-content h1 {
        font-size: 36px;
    }

    .home-content h3 {
        font-size: 24px;
    }

    .home-img img {
        max-width: 300px;
    }

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

    .about-content {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .skills-content.active {
        grid-template-columns: 1fr;
    }

    .skills-tabs {
        flex-direction: column;
    }

    .tech-stack {
        justify-content: center;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 5%;
    }

    .logo {
        font-size: 20px;
    }

    .home-content h1 {
        font-size: 28px;
    }

    .home-content h3 {
        font-size: 20px;
    }

    .home-content p {
        font-size: 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .social-media a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .experience-highlight {
        grid-template-columns: 1fr;
    }
}
