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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #b91c1c;
}

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

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #dc2626;
}

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

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

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #ffffff;
    padding-top: 70px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-statement {
    text-align: left;
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #dc2626;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title {
    color: #333;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.design-flag {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #666;
    text-transform: uppercase;
}

.hero-description {
    display: flex;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.cta-button {
    display: inline-block;
    background-color: #dc2626;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #dc2626;
}

.cta-button:hover {
    background-color: transparent;
    color: #dc2626;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: #dc2626;
}

.section-subtitle {
    color: #666;
    font-size: 1.2rem;
    font-weight: 300;
}

/* About Section */
.about {
    background-color: #fafafa;
    padding: 8rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    text-align: left;
}

.about-role {
    font-size: 1.3rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.about-focus,
.about-approach {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-expertise h3 {
    color: #dc2626;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background-color: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.project-card:hover {
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    position: relative;
    overflow: hidden;
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.project-image-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.project-category {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.4rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.project-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background-color: #f3f4f6;
    color: #dc2626;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-cta {
    margin-top: 1.5rem;
    color: #dc2626;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-cta {
    color: #b91c1c;
}

/* Contact Section */
.contact {
    background-color: #fafafa;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

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

.contact-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid #dc2626;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: #dc2626;
    color: white;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0;
    color: #ccc;
}

/* Project Detail Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
    position: relative;
}

.modal-title {
    color: #dc2626;
    margin-bottom: 1rem;
}

.modal-meta {
    margin-bottom: 1rem;
}

.modal-role,
.modal-type {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.modal-role strong,
.modal-type strong {
    color: #333;
    font-weight: 600;
}

.modal-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #dc2626;
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 3rem;
}

.modal-section h3 {
    color: #dc2626;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.modal-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.modal-section ul {
    color: #555;
    padding-left: 2rem;
}

.modal-section li {
    margin-bottom: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .container {
        padding: 0 1rem;
    }

    /* Hero responsive */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    /* About responsive */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-intro {
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .expertise-tags {
        justify-content: center;
    }

    section {
        padding: 3rem 0;
    }

    .about {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}
