/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #221F1F;
    color: #FFFFFF;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #FFFFFF;
    text-transform: lowercase;
}

/* ===== HEADER ===== */
header {
    background-color: #221F1F;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.logo span {
    color: #A6BBCC;
    margin-right: 2px;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav a {
    color: #A6BBCC;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #FFFFFF;
}

.header-icon a {
    color: #FFFFFF;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.header-icon a:hover {
    color: #A6BBCC;
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h4 {
    color: #A6BBCC;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #A6BBCC;
    margin-bottom: 20px;
}

.hero-content p {
    color: #A6BBCC;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-img img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== BUTTON ===== */
.btn {
    display: inline-block;
    background-color: #FFFFFF;
    color: #221F1F;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #A6BBCC;
    transform: translateY(-2px);
}

/* ===== ABOUT ===== */
.about {
    padding: 80px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.about-text {
    color: #A6BBCC;
    margin-bottom: 50px;
    max-width: 900px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-card {
    background-color: #2A2A2A;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #FFFFFF;
}

.skill-icon {
    width: 70px;
    height: 70px;
    background-color: #333;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #FFFFFF;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.skill-card p {
    color: #A6BBCC;
    font-size: 0.95rem;
}

/* ===== WORK ===== */
.work {
    padding: 80px 0;
}

.work-text {
    color: #A6BBCC;
    margin-bottom: 50px;
    max-width: 800px;
    line-height: 1.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background-color: #2A2A2A;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #FFFFFF;
}

.project-icon {
    width: 60px;
    height: 60px;
    background-color: #333;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #FFFFFF;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #FFFFFF;
}

.project-subtitle {
    color: #A6BBCC;
    font-weight: 500;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    background-color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #A6BBCC;
}

/* ===== CONTACT ===== */
.contact {
    padding: 80px 0;
    border-top: 1px solid #333;
}

.contact-text {
    color: #A6BBCC;
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.8;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #A6BBCC;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: #2A2A2A;
    border: 1px solid #333;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #FFFFFF;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFFFFF;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.submit-btn {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
}

/* ===== FOOTER ===== */
footer {
    background-color: #1A1A1A;
    padding: 40px 0;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.copyright {
    font-size: 1.2rem;
    color: #FFFFFF;
}

.copyright span {
    color: #A6BBCC;
    margin-right: 2px;
}

.footer-icons {
    display: flex;
    gap: 20px;
}

.footer-icons a {
    color: #A6BBCC;
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-icons a:hover {
    color: #FFFFFF;
    transform: translateY(-3px);
}

.back-to-top {
    position: absolute;
    right: 20px;
    bottom: 0;
    width: 45px;
    height: 45px;
    background-color: #2A2A2A;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A6BBCC;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.back-to-top:hover {
    background-color: #FFFFFF;
    color: #221F1F;
    transform: translateY(-5px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-icons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .back-to-top {
        position: static;
        margin-top: 20px;
    }
}

/* ===== PROJECT LINKS ===== */
.project-card a {
    text-decoration: none;
}

.project-card a h3 {
    color: #FFFFFF;
    transition: color 0.3s;
    margin-bottom: 5px;
}

.project-card a:hover h3 {
    color: #A6BBCC;
}

.project-links {
    margin-top: 15px;
}

.live-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #A6BBCC;
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    text-decoration: none;
}

.live-demo-btn:hover {
    background: #FFFFFF;
    color: #221F1F;
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.live-demo-btn i {
    transition: transform 0.3s;
}

.live-demo-btn:hover i {
    transform: translateX(3px);
}

.project-tags span {
    background: #333;
    color: #A6BBCC;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-card:hover .project-tags span {
    background: #FFFFFF;
    color: #221F1F;
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}