:root {
    /* Refined Color Palette - More Pleasant Dark Gray */
    --bg-main: #111113;
    --surface-main: #18191b;
    --accent-orange: #ffb050;
    --text-primary: #f8f9fa;
    --text-secondary: rgba(248, 249, 250, 0.7);
    --text-muted: rgba(248, 249, 250, 0.3);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --radius-soft: 16px;
    --transition-clean: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-heading);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Atmosphere (Simplified) */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-point {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 176, 80, 0.03) 0%, transparent 70%);
}

/* Fixed Navigation Styles (No Container) */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 3rem 0;
}

#top-nav nav {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
}

#top-nav nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: 0.5;
    transition: var(--transition-clean);
}

#top-nav nav a:hover {
    color: var(--accent-orange);
    opacity: 1;
}

/* Hero Section (Atmospheric & Bold) */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(17, 17, 19, 0.2) 0%, rgba(17, 17, 19, 0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -2px;
}

.accent-text {
    color: var(--accent-orange);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Sections Global Styling */
.container {
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-title .muted {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 6px;
    margin-top: 1rem;
}

/* Projects Dynamic Grid (Simplified Design) */
.works-section {
    padding: 10rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    position: relative;
    border-radius: var(--radius-soft);
    overflow: hidden;
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    text-decoration: none;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* More visible borders */
    transition: var(--transition-clean);
}

.project-card:hover {
    border-color: var(--accent-orange);
    /* Removed scale and shadow as per request */
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 1;
}

.project-info {
    position: relative;
    z-index: 2;
    /* Removed scroll animation on hover */
}

.project-card h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0;
    color: #fff;
    transition: var(--transition-clean);
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
}

.project-card:hover p {
    margin-top: 0.5rem;
    max-height: 100px;
    opacity: 1;
}

.project-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: var(--accent-orange);
    color: #000;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-clean);
}

.project-btn:hover {
    transform: scale(1.05);
}

.project-btn i {
    width: 16px;
    height: 16px;
}

/* Textures (Simplified) */
.texture-glass {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.02);
}

.texture-carbon {
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%);
    background-size: 8px 8px;
}

.texture-mesh {
    background-image: radial-gradient(at top left, rgba(255, 176, 80, 0.05), transparent);
}

/* Skills Section Styles */
.skills-section {
    padding: 12rem 2rem;
    background-color: var(--bg-main);
}

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

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: 3rem 2.5rem;
    background: var(--surface-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-soft);
    transition: var(--transition-clean);
}

.skill-card:hover {
    border-color: var(--accent-orange);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 176, 80, 0.05);
    border-radius: 12px;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

/* Contact Section Design */
.contact-section {
    padding: 12rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.main-email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    border: 2px solid var(--accent-orange);
    background: transparent;
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition-clean);
}

.main-email-btn:hover {
    background: var(--accent-orange);
    color: #000;
}

.social-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.6;
    transition: var(--transition-clean);
}

.social-link:hover {
    opacity: 1;
    color: var(--accent-orange);
}

.social-link i {
    font-size: 1.25rem;
    color: var(--accent-orange);
}

/* Footer Section */
footer {
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

footer p {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}