/* ==========================================
   Global Styles & Reset
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f1419;
    --secondary-color: #1a1f2e;
    --accent-color: #00d4ff;
    --accent-hover: #00a8cc;
    --text-light: #e0e0e0;
    --text-dark: #a0a0a0;
    --border-color: #2a3f5f;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

model-viewer {
    width: 100%;
    height: 200px;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

/* ==========================================
   NAVBAR (Fixed on Scroll)
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 200;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.active {
    max-height: 80px;
    border-bottom-color: var(--accent-color);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.navbar-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo-img {
    max-width: 0;
    height: auto;
    opacity: 0;
    transition: max-width 0.4s ease, opacity 0.3s ease;
}

.navbar.active .navbar-logo-img {
    max-width: 40px;
    opacity: 1;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.navbar-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-link:hover {
    color: var(--accent-color);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}


.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, rgba(7, 20, 32, 0.55), rgba(7, 20, 32, 0.6));
    pointer-events: none;
}


.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    margin-top: 30px;
}

.hero-logo {
    margin: 0 auto;
    animation: slideDown 1s ease 0.2s both;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 50px;
    animation: slideDown 1s ease 0.4s both;
}

.scroll-indicator {
    animation: bounce 2s infinite 0.8s;
}

.scroll-indicator span {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--accent-color);
    opacity: 0.7;
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    padding: 100px 20px;
    background-color: var(--primary-color);
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--secondary-color);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 20px;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-section {
    background-color: var(--secondary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
    opacity: 0.9;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   PORTFOLIO / GALLERY SECTION
   ========================================== */

.project-section {
    background-color: var(--primary-color);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item,
.asset-card,
.contact-info {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gallery-item {
    background: var(--secondary-color);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-15px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.image-placeholder {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a3a52 0%, #0f1419 100%);
    position: relative;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .image-placeholder img {
    transform: scale(1.15);
}

.gallery-info {
    padding: 25px;
}

.gallery-info h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.gallery-info p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   ASSETS SECTION
   ========================================== */

.assets-section {
    background-color: var(--secondary-color);
}

.assets-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 25px;
}

.asset-card {
    background: var(--primary-color);
    padding: 30px;
    border-left: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
}

.asset-card:hover {
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15);
    transform: translateY(-8px);
    border-color: var(--accent-color);
}

.asset-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    gap: 15px;
}

.asset-card h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    flex: 1;
}

.asset-specs {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    background-color: rgba(0, 212, 255, 0.05);
    padding: 8px 12px;
    border-radius: 4px;
}

.asset-description {
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.asset-tag {
    display: inline-block;
    background-color: rgba(0, 212, 255, 0.2);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--accent-color);
    white-space: nowrap;
}

.asset-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
}

.asset-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-section {
    background-color: var(--primary-color);
    padding: 120px 20px !important;
    min-height: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.contact-info {
    padding: 50px;
    background-color: rgba(26, 31, 46, 0.6);
    border-radius: 10px;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-item {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.label {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item a,
.info-item span {
    color: var(--text-light);
    transition: var(--transition);
    font-size: 1rem;
    word-break: break-word;
    line-height: 1.6;
    font-weight: 500;
}

.info-item a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
    flex-wrap: wrap;
}

.social-btn,
.asset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid var(--accent-color);
    background-color: transparent;
}

.social-btn:hover,
.asset-btn:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.25);
}

.asset-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: transparent;
    padding: 10px 20px;
    align-self: flex-start;
}

.asset-btn:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: #0a0e13;
    color: var(--text-light);
    border-top: 2px solid var(--border-color);
    margin-top: 60px;
    padding: 50px 20px;
}

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation for multiple elements */
.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; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .navbar-menu {
        gap: 20px;
    }

    .navbar-link {
        font-size: 0.85rem;
    }

    .contact-section {
        padding: 80px 20px !important;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        padding: 40px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .assets-list {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 10px;
    }

    .footer {
        margin-top: 50px;
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .logo-img {
        max-width: 100px;
    }

    .section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .navbar-menu {
        gap: 15px;
    }

    .navbar-link {
        font-size: 0.8rem;
    }

    .container {
        padding: 0 15px;
    }

    .contact-section {
        padding: 60px 15px !important;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        padding: 25px;
        background-color: rgba(26, 31, 46, 0.4);
    }

    .contact-info h3 {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .info-item {
        margin-bottom: 25px;
    }

    .info-item:last-child {
        margin-bottom: 0;
    }

    .label {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .social-links {
        gap: 12px;
        margin-top: 25px;
    }

    .social-btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }

    .footer {
        margin-top: 40px;
        padding: 35px 15px;
        border-top: 1px solid var(--border-color);
    }

    .footer p {
        font-size: 0.85rem;
    }

    .navbar-container {
        padding: 12px 15px;
        height: auto;
    }

    .asset-header {
        flex-direction: column;
    }

    .asset-tag {
        align-self: flex-start;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .assets-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */


.visible {
    opacity: 1;
}