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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body:not(.bg-grid) {
    background-color: var(--black) !important;
}
:root {
    --black: #000000;
    --white: #ffffff;
    --gray-dark: #1a1a1a;
    --gray-medium: #333333;
    --gray-light: #666666;
    --gray-lighter: #999999;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

nav {
    position: sticky !important;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white) !important;
}

.nav-link {
    color: var(--gray-lighter) !important;
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    transition: color 0.3s;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--white) !important;
}

.nav-link:hover::before {
    width: calc(100% - 2rem);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
}

.hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.hero-presentation-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-lighter);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.btn-dark {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--white);
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 1rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.btn-dark:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
}

section {
    padding: 6rem 2rem;
}

.section-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.about-preview {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 3rem;
}

.about-preview p {
    color: var(--gray-lighter);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.featured-projects {
    padding: 6rem 2rem;
}

.project-preview {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
}

.project-preview:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.project-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.project-preview h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-preview p {
    color: var(--gray-lighter);
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: var(--gray-lighter);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-outline-secondary {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2.5rem;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-secondary:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.recent-articles {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-preview {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    transition: all 0.3s;
}

.article-preview:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.article-date {
    color: var(--gray-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 1rem;
}

.article-preview h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-preview p {
    color: var(--gray-lighter);
    margin-bottom: 1rem;
}

.article-preview a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.article-preview a:hover {
    color: var(--gray-lighter);
}

.contact-section {
    text-align: center;
}

.contact-section p {
    color: var(--gray-lighter);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

.contact-method {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.contact-method:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-5px);
}

.contact-method i {
    font-size: 1.5rem;
}

.contact-method span {
    font-weight: 500;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}
.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.box.visible {
    opacity: 1;
    transform: translateY(0);
}
