/* ======== CSS Reset and Variables ======== */
:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-muted: #a3a3a3;
    --accent-orange: #ff5722;
    --accent-orange-light: #ff8a50;
    --accent-gradient: linear-gradient(135deg, var(--accent-orange), #ff2a00);

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
}

body {
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ======== Typography ======== */
h1, h2, h3, h4, .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--text-muted);
}

.pt-100 { padding-top: 100px; }
.pb-100 { padding-bottom: 100px; }
.pb-8 { padding-bottom: 2rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* ======== Layout ======== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
}

/* ======== Star Canvas ======== */
#star-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

/* ======== Abstract Shapes ======== */
.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-orange), transparent 60%);
    animation: drift 15s ease-in-out infinite alternate;
}

.shape-2 {
    top: 40%;
    right: -15%;
    width: 500px;
    height: 800px;
    background: radial-gradient(ellipse, #ff2a00, transparent 60%);
    animation: drift 20s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(-30px,50px) scale(1.1); }
}

/* ======== Buttons ======== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.primary-btn {
    background: var(--accent-gradient);
    color: #000;
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background: white;
    color: black;
}

/* ======== Navbar ======== */
.navbar {
    position: fixed;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem;
}

.nav-links a:hover {
    color: white;
}

/* ======== Hero ======== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
}

.greeting {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.hero-desc {
    margin-top: 1rem;
    color: var(--text-muted);
}

/* ======== About ======== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.about-image img {
    width: 100%;
    border-radius: 12px;
}

/* ======== Projects ======== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.project-info h3 {
    font-size: 2rem;
}

.project-info p {
    color: var(--text-muted);
}

.project-visual img {
    width: 100%;
}

/* ======== Contact ======== */
.contact-desc {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
}

.contact-label {
    font-size: .8rem;
    color: var(--text-muted);
}

.contact-data {
    font-weight: 700;
}

/* ======== Footer ======== */
.footer {
    margin-top: 100px;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    color: var(--text-muted);
}

/* ======== Responsive ======== */
@media (max-width:1024px){
    .hero-title{font-size:4rem}
    .about-grid{grid-template-columns:1fr}
    .project-item{grid-template-columns:1fr}
}

@media (max-width:768px){
    .nav-links{display:none}
    .hero-title{font-size:3rem}
    .btn-group{flex-direction:column}
    .contact-details{grid-template-columns:1fr}
}

/* ======== Reveal Animations ======== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: .8s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
