/* Base Styles */
:root {
    --primary-color: #007acc;
    --secondary-color: #1e1e1e;
    --accent-color: #0bd3d3;
    --dark-bg: #121212;
    --dark-secondary-bg: #1e1e2e;
    --dark-tertiary-bg: #2d2d3a;
    --light-color: #f8f8f8;
    --dark-color: #121212;
    --text-color-dark: #e0e0e0;
    --text-muted-dark: #a0a0a0;
    --text-light: #f8f8f8;
    --border-color: #2a2a3a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --glow-color: rgba(0, 122, 204, 0.5);
    --star-color: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s ease;
    --container-width-lg: 1200px;
    --container-width-md: 900px;
    --container-width-sm: 600px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 90%;
    max-width: var(--container-width-lg);
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
}

section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--text-light);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.25rem;
    background-color: var(--accent-color);
    border-radius: 5px;
}

/* Stars Container */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--dark-bg);
}

.star {
    position: absolute;
    background-color: var(--star-color);
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--duration) linear infinite;
    z-index: -1;
}

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    10% {
        opacity: var(--opacity);
    }
    90% {
        opacity: var(--opacity);
    }
    100% {
        opacity: 0;
        transform: translateY(var(--distance));
    }
}

/* Navigation */
.nav {
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    z-index: 100;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    box-shadow: 0 1px 5px var(--shadow-color);
}

#header.scrolled {
    height: 4rem;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.logo:hover {
    transform: rotate(10deg);
    box-shadow: 0 0 10px var(--glow-color);
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 5rem;
}

.hero-content {
    text-align: center;
}

.title {
    font-size: 4.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.3s;
}

.subtitle {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.5s;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 122, 204, 0.3);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards 0.7s;
}

.cta-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(11, 211, 211, 0.4);
    color: white;
}

.cta-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-btn:hover i {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.8s forwards 1.2s;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
    margin-bottom: 0.5rem;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: scrollAnim 2s infinite;
}

.scroll-indicator p {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* About Section */
.about {
    background-color: var(--dark-secondary-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 4rem;
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--text-color-dark);
}

.skills-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 2rem;
}

.skill-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-tertiary-bg);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
    position: relative;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.skill-item i {
    font-size: 2.5rem;
}

.skill-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-color);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.skill-item::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent var(--dark-color) transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.skill-item:hover::after,
.skill-item:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Projects Section */
.projects {
    background-color: var(--dark-bg);
}

.project-card {
    display: flex;
    margin-bottom: 5rem;
    background-color: var(--dark-tertiary-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

/* project image styles */
.project-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 400px;
    background-color: var(--dark-tertiary-bg);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.8s ease;
}

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

.project-details {
    flex: 1;
    padding: 2.5rem;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-description {
    margin-bottom: 1.5rem;
    color: var(--text-color-dark);
}

.project-features {
    margin-bottom: 1.5rem;
}

.project-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    color: var(--text-color-dark);
}

.feature-bullet {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-link {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link i {
    margin-right: 0.5rem;
}

.project-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.project-link.live-link {
    background-color: var(--secondary-color);
}

.project-link.live-link:hover {
    background-color: var(--accent-color);
}

.project-link.disabled {
    background-color: #444;
    cursor: not-allowed;
}

.project-link.disabled:hover {
    background-color: #444;
}

.in-progress {
    position: relative;
}

.in-progress-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ff9800;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.in-progress-badge i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    background-color: var(--dark-secondary-bg);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-text {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color-dark);
}

.contact-form {
    background-color: var(--dark-tertiary-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px var(--shadow-color);
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: rgba(30, 30, 40, 0.5);
    color: var(--text-color-dark);
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 1rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-size: 1.1rem;
}

.submit-btn:hover {
    background-color: var(--accent-color);
}

.contact-alt {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color-dark);
}

.email-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.email-link i {
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    background-color: var(--accent-color);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-content i {
    color: var(--accent-color);
    margin: 0 0.3rem;
}

/* Thank You Modal */
.thank-you-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.thank-you-message.show {
    opacity: 1;
    visibility: visible;
}

.thank-you-content {
    background-color: var(--dark-tertiary-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.thank-you-message.show .thank-you-content {
    transform: translateY(0);
    opacity: 1;
}

.thank-you-content i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.thank-you-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.thank-you-content p {
    margin-bottom: 0.5rem;
    color: var(--text-color-dark);
}

.close-btn {
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    background-color: var(--accent-color);
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .container {
        width: 90%;
        max-width: var(--container-width-md);
    }

    section {
        padding: 6rem 0;
    }

    .project-card {
        flex-direction: column;
    }

    .project-image {
        height: 350px;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 94%;
        max-width: var(--container-width-sm);
    }

    section {
        padding: 5rem 0;
    }

    .title {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .menu-btn {
        display: flex;
        z-index: 101;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: var(--transition);
        z-index: 100;
        box-shadow: -5px 0 15px var(--shadow-color);
    }

    .nav-list.active {
        right: 0;
    }

    .menu-btn.active span:first-child {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:last-child {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .contact-form {
        padding: 2rem;
    }

    .project-image {
        height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .title {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 1.5rem;
    }

    .project-details {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .project-image {
        height: 250px;
    }
}