:root {
    --bg-dark: #0a0a0c;
    --bg-card: #141418;
    --primary: #f0f4f8;
    --accent: #3f9b0b;
    /* Green accent */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --gradient-1: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-text: linear-gradient(90deg, #3f9b0b, #f0f4f8);
    --glass-bg: rgba(20, 20, 24, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

.nav-socials {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-left: 2rem;
}

.nav-socials a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    margin-right: 1.2rem;
    /* Fallback for Safari */
}

.nav-socials a:last-child {
    margin-right: 0;
}

.nav-socials a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    padding-top: 8rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #0a0a0c 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}





/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Sections */
.section-padding {
    padding: 6rem 0;
}

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

.subtitle {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

/* About Grid */
.about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    justify-content: center;
    width: 100%;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem 4rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    flex: 1;
    text-align: center;

}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-label-about {
    color: var(--text-muted);
    font-size: 1.2rem;
    text-align: center;


}

/* Project Grid */
.project-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    align-items: center;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    max-width: 800px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 250px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-fallback {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.2rem;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.project-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-item {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.skill-icons {
    display: flex;
    color: #3f9b0b;
    margin-top: 2rem;
    padding: 1rem;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.skill-item i {
    color: var(--accent);
    margin-bottom: 1.5rem;
    width: 32px;
    height: 32px;
}

.skill-item h3 {
    margin-bottom: 1rem;
}

.skill-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Box */
.contact-box {
    background: var(--gradient-1);
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}



/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 4rem;
    }

    /* .project-grid rule removed here as it is now flex-column by default */
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Project Gallery */
.project-gallery {
    padding: 5rem 0;
}

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

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    aspect-ratio: 16/9;
}

.gallery-item.mobile-shot {
    aspect-ratio: 9/16;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.project-list {
    list-style: none;
    margin-top: 1.5rem;
}

.project-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.project-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .gallery-item.mobile-shot {
        grid-row: auto;
    }
}

/* Project Story Section */
.story-section {
    padding: 2rem 0 0rem;
}

.story-content {
    max-width: 900px;
    align-items: center;    
    justify-content: center;
}

.story-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.story-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Technical Details Layout */
.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    font-size: 1.2rem;
}

.feature-image {
    flex: 1;
}

.feature-text h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.details-left h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.details-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.uniform-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.uniform-img.mobile-shot {
    aspect-ratio: 9 / 16;
    max-width: 350px;
    margin: 0 auto;
}

.uniform-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.uniform-img:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.uniform-img:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .story-content p {
        font-size: 1.1rem;
    }
}