/* CSS Reset and Variables */
:root {
    --primary-color: #470c4b;
    --accent-color: #b9ab15;
    --dark-bg: #191919;
    --darker-bg: #101010;
    --text-light: #ffffff;
    --text-gray: #fcfc;
    --header-height: 70px;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Josefin Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-bg);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.nav__logo {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
}

.nav__logo span {
    color: var(--accent-color);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav__item {
}

.nav__link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--accent-color);
}

/* CTA Button */
.nav__cta {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.nav__cta:hover {
    background-color: var(--accent-color);
}

/* Nav Toggle Button */
.nav__toggle,
.nav__close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    position: absolute;
    right: 1.5rem;
}

/* Show toggle button on mobile */
@media screen and (max-width: 768px) {
    .nav__toggle {
        display: block;
    }

    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100% - var(--header-height));
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Hero Section */
.hero {
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../img/main-img.png);
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero__title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero__title span {
    color: var(--accent-color);
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.hero__description {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Newsletter Form */
.hero__form {
    max-width: 500px;
    margin: 0 auto;
}

.form__group {
    display: flex;
    gap: 1rem;
}

.form__input {
    flex: 1;
    padding: 1rem;
    border-radius: 30px;
    border: none;
    outline: none;
}

/* Button Styles */
.btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--darker-bg);
}

.about__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.about__img {
    text-align: center;
}

.about__photo {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(185, 171, 21, 0.7);
}

.about__content {
    color: var(--text-light);
}

.section__title {
    font-size: 48px;
    margin-bottom: 1rem;
    text-align: center;
}

.about__subtitle {
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-align: center;
}

.about__text {
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-align: center;
}

/* Button */
button {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 30px;
    transition: background-color 0.4s ease, transform 0.3s ease;
    cursor: pointer;
}

button:hover {
    background-color: #f9004d;
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: 5rem 0;
}

.services__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service__card {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.service__card:hover {
    transform: translateY(-10px);
}

.service__icon {
    font-size: 50px;
    margin: 25px 0;
    color: var(--accent-color);
}

.service__title {
    color: var(--text-light);
    font-size: 24px;
    margin-bottom: 15px;
}

.service__description {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn--small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background-color: var(--dark-bg);
}

.projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-light);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.project {
    background: var(--darker-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(185, 171, 21, 0.2);
}

.project-title {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tags span {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.project-actions a {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.project-actions a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Responsive adjustments for projects */
@media screen and (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-title {
        font-size: 1.3rem;
        padding: 1rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-actions {
        gap: 0.8rem;
    }
    
    .project-actions a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    text-align: center;
}

.contact .section__title {
    margin-bottom: 2rem;
}

.btn--large {
    padding: 12px 40px;
    font-size: 1.1rem;
}

/* Hire Me Section */
.hire-me-section {
    padding: 5rem 0;
    background-color: var(--darker-bg);
    text-align: center;
}

.hire-me-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hire-me-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.hire-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hire-form input,
.hire-form textarea {
    padding: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-size: 1rem;
}

.hire-form input:focus,
.hire-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.hire-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn.primary {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn.primary:hover {
    background-color: #f9004d;
    transform: translateY(-2px);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--text-light);
}

.icon-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.icon-box2 {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.5rem;
}

.icon-box2:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer__title {
    font-size: 28px;
    margin-bottom: 1rem;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    list-style: none;
    padding: 0;
}

.footer__link {
    background: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
    text-decoration: none;
}

.footer__link:hover {
    transform: scale(1.3);
}

/* Scroll to top button */
.scrolltop {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scrolltop.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav__toggle {
        display: block;
    }

    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100% - var(--header-height));
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Mobile-specific hero adjustments */
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__description {
        font-size: 1.2rem;
    }

    .form__group {
        flex-direction: column;
    }

    /* Mobile about section */
    .about__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__photo {
        max-width: 280px;
    }

    .section__title {
        font-size: 36px;
    }

    .about__subtitle {
        font-size: 20px;
    }

    .about__text {
        font-size: 16px;
    }

    /* Mobile services */
    .services__container {
        grid-template-columns: 1fr;
    }

    .service__card {
        padding: 1.5rem;
    }

    /* Mobile contact */
    .contact {
        padding: 3rem 0;
    }

    /* Mobile footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer__social {
        flex-wrap: wrap;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .about__container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .about__photo {
        max-width: 300px;
    }

    .hero__title {
        font-size: 3rem;
    }

    .services__container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }
}
