/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #888888;
    --card-bg: #0a0a0a;
    --border-color: #333333;
    --hover-color: #e0e0e0;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

.highlight {
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transform: rotate(-2deg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ===== Reusable Components ====== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--text-color);
    color: var(--bg-color);
    border: 2px solid var(--text-color);
    border-radius: 0;
    font-weight: 600;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    background: transparent;
    color: var(--text-color);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text-color);
    color: var(--bg-color);
    font-weight: 600;
    border: 1px solid var(--text-color);
}

.btn-small:hover {
    background: transparent;
    color: var(--text-color);
}

.btn-small.btn-outline {
    background: transparent;
    color: var(--text-color);
}

.btn-small.btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Section Padding Offset for Fixed Nav */
section {
    padding: 6rem 8%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 1rem 8%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition-normal);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* To be above mobile menu */
}

/* ===== Home Section ===== */
.home {
    position: relative;
    justify-content: center;
    align-items: flex-start;
}

.home-content {
    max-width: 800px;
    margin-top: 2rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.home-content h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
}

.home-content h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.home-buttons {
    display: flex;
    gap: 1.5rem;
}

/* ===== About Section ===== */
.about-container {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-top: 2rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    padding: 1rem;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--text-color);
    z-index: -1;
    transition: var(--transition-normal);
}

.about-image:hover .image-wrapper::before {
    top: 10px;
    left: 10px;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: var(--transition-normal);
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

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

.about-text strong {
    color: var(--text-color);
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item h4 {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* ===== Skills Section ===== */
.skills-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.skill-card {
    margin-bottom: 2rem;
}

.skill-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.skill-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.percentage {
    margin-left: auto;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    position: relative;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--text-color);
    width: 0; /* JS handles this */
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
}

/* ===== Projects Section ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-color);
}

.project-img {
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.project-img img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.project-card:hover .project-img img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 70px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.view-more-container {
    text-align: center;
}

/* ===== Contact Section ===== */
.contact-wrapper {
    display: flex;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 0.2rem;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    color: var(--text-muted);
}

.social-links-contact {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-links-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
}

.social-links-contact a:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.contact-form {
    flex: 1.5;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* ===== Footer ===== */
footer {
    padding: 3rem 8%;
    background: #050505;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scroll-top {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.scroll-top:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* ===== Animations (Scroll Reveal) ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Media Queries for Responsiveness ===== */
@media screen and (max-width: 992px) {
    .home-content h1 {
        font-size: 3.5rem;
    }
    .about-container {
        flex-direction: column;
        gap: 3rem;
    }
    .contact-wrapper {
        flex-direction: column;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 5rem 5%;
    }
    
    .navbar {
        padding: 1.2rem 5%;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
    }

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

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .home-content h1 {
        font-size: 2.8rem;
    }
    
    .home-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .home-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .project-links {
        flex-direction: column;
    }
} 