@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    font-family: 'Montserrat', sans-serif important;
}

/* --- Variables & Reset --- */
:root {
    /* Colors */
    --brand-primary: #5e0811;
    --brand-light: #8a1c26;
    --brand-dark: #3d050b;
    --brand-subtle: rgba(94, 8, 17, 0.1);
    
    --bg-body: #f9fafb;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-alt: #f3f4f6;

    --text-main: #111827;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;

    /* Fonts */
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Montserrat', serif;

    /* Spacing */
    --container-padding: 1rem;
    --container-width: 1200px;
    --header-height: 80px;

    /* Transition */
    --transition: all 0.3s ease;
}

html.dark {
    --bg-body: #0a0a0a;
    --bg-surface: #121212;
    --bg-card: #1a1a1a;
    --bg-alt: #121212;

    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --text-light: #6b7280;
    --border-color: #374151;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 5rem 0;
}

.text-center { text-align: center; }
.mt-large { margin-top: 3rem; }

/* Background Helpers */
.bg-default { background-color: var(--bg-body); }
.bg-alt { background-color: var(--bg-alt); }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
    color: var(--text-main);
}

.link-highlight {
    font-weight: bold;
    text-decoration: none;
    color: var(--text-main);
}

.link-highlight:hover {
    font-weight: bold;
    background-color: #5e0811;
    padding: 8px;
    border-radius: 20px;
    color: white;
    transition: var(--transition);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(94, 8, 17, 0.2);
}

.btn-primary:hover {
    background-color: var(--brand-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-alt);
}

.btn-full { width: 100%; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

html.dark .navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.9);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    background-color: var(--brand-primary);
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    background-color: var(--brand-light);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text span { color: var(--brand-primary); }

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.nav-link:hover { color: var(--brand-primary); }

/* Theme Toggle */
.theme-btn {
    background: var(--bg-alt);
    border: none;
    padding: 0.5rem;
    border-radius: 9999px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-btn:hover { background-color: var(--border-color); }

.icon-sun { display: none; }
html.dark .icon-sun { display: block; }
html.dark .icon-moon { display: none; }

/* Mobile Menu */
.mobile-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mobile-toggle { display: none; }
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open { transform: scaleY(1); }

.mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-link:hover { color: var(--brand-primary); }

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

/* Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--brand-subtle);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--brand-subtle);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-container { margin-bottom: 1.5rem; }

.badge {
    background-color: var(--brand-subtle);
    color: var(--brand-primary);
    border: 1px solid rgba(94, 8, 17, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4rem; }
}

.highlight {
    background: linear-gradient(to right, var(--brand-primary), var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

@media (min-width: 768px) {
    .scroll-indicator { display: flex; }
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.scroll-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, var(--brand-primary), transparent);
    margin-bottom: -4rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--brand-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 auto;
}

/* --- About Section --- */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid { flex-direction: row; gap: 5rem; }
}

.about-image { width: 100%; max-width: 500px; }
.about-content { width: 100%; }

.image-wrapper { position: relative; }

.image-border {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 100%;
    height: 100%;
    border: 2px solid var(--brand-primary);
    border-radius: 1rem;
    z-index: 0;
}

.image-wrapper img {
    width: 100%;
    border-radius: 1rem;
    position: relative;
    z-index: 1;
    filter: grayscale(100%);
    transition: var(--transition);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.image-wrapper:hover img { filter: grayscale(0); }

.about-heading { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; }
.text-body { color: var(--text-muted); margin-bottom: 1.5rem; }

.skills-container { margin-bottom: 2rem; }
.skills-title {
    font-size: 1rem;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
html.dark .skills-title { color: var(--brand-light); }

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    list-style: none;
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stats-container {
    display: flex;
    gap: 2rem;
}

.stat-number {
    display: block;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* --- Grid Layouts --- */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Services Cards --- */
.service-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--brand-subtle);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--brand-primary);
    color: white;
}

.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; font-weight: 700; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Project Cards --- */
.project-card {
    background-color: var(--bg-card);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.project-image-container {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(94, 8, 17, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.project-card:hover .project-overlay { opacity: 1; }

.icon-btn {
    background: white;
    color: var(--brand-primary);
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.icon-btn.primary { background: var(--brand-primary); color: white; }
.icon-btn:hover { transform: scale(1.1); }

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image { transform: scale(1.1); }

.project-content { padding: 1.5rem; }
.project-content h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.project-content p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--brand-subtle);
    color: var(--brand-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}
html.dark .tag { background-color: rgba(138, 28, 38, 0.2); color: #fca5a5; }

/* --- Testimonials --- */
.section-brand {
    background-color: var(--brand-primary);
    position: relative;
    overflow: hidden;
}

.text-white { color: white; }
.text-white-opacity { color: rgba(255, 255, 255, 0.8); }

.bg-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    pointer-events: none;
}
.bg-deco-1 { top: 2rem; left: 2rem; width: 8rem; height: 8rem; background: white; }
.bg-deco-2 { bottom: 2rem; right: 2rem; width: 12rem; height: 12rem; background: black; }

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.quote-icon { opacity: 0.3; margin-bottom: 1rem; width: 2rem; height: 2rem; }
.testimonial-text { font-style: italic; margin-bottom: 1.5rem; min-height: 5rem; opacity: 0.9; }

.client-info { display: flex; align-items: center; gap: 1rem; }
.client-img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.client-details h4 { font-weight: 700; font-size: 1rem; color: white; }
.client-details p { font-size: 0.875rem; opacity: 0.6; }

/* --- Contact --- */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-container { flex-direction: row; }
}

.contact-info { flex: 1; }
.contact-form-wrapper { flex: 2; }

.info-card {
    background-color: var(--bg-alt);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.info-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }

.info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.icon-box {
    background-color: var(--brand-subtle);
    color: var(--brand-primary);
    padding: 0.75rem;
    border-radius: 0.5rem;
    height: fit-content;
}

.info-label { font-size: 0.875rem; color: var(--text-light); margin-bottom: 0.25rem; }
.info-link, .info-value { color: var(--text-main); font-weight: 500; text-decoration: none; }
.info-link:hover { color: var(--brand-primary); }
.sub-text { font-size: 0.75rem; font-weight: 400; color: var(--text-light); }

.contact-form {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px var(--brand-subtle);
}

/* --- Footer --- */
.footer {
    background-color: #111827;
    color: white;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid #1f2937;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

#linkFooter {
    text-decoration: none;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.logo-text-footer {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}
.logo-text-footer span { color: var(--brand-primary); }

.footer-brand p, .footer-links ul, .footer-social p { color: #9ca3af; font-size: 0.95rem; }
.footer-links h3, .footer-social h3 { color: white; margin-bottom: 1rem; font-weight: 700; }

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { text-decoration: none; color: #9ca3af; transition: var(--transition); }
.footer-links a:hover { color: var(--brand-primary); }

.social-icons { display: flex; gap: 1rem; }
.social-icons a {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}
.social-icons a:hover { background-color: var(--brand-primary); }

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.made-with { display: flex; align-items: center; }
.heart-icon { color: var(--brand-primary); width: 1rem; height: 1rem; margin: 0 0.25rem; fill: currentColor; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--brand-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-light); }
