/* ========================================
   LytmX Portfolio Template
   Based on Oliver Williams Template
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #ffffff;
    --secondary: #aaaaaa;
    --accent: #00d4ff;
    --accent2: #7c3aed;
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --text: #ffffff;
    --text-muted: #888888;
    --border: #222222;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
    transition: all 0.4s ease;
}

.lang-toggle {
    margin-right: 16px;
}

.lang-toggle button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.main-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 60px;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.logo h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    min-height: 100vh;
}

/* ========================================
   HERO SECTION (Home)
   ======================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 60px 80px;
    position: relative;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 20% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1.1;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 48px;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.hero-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    padding: 80px 60px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 8px;
}

.stat-num .accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover {
    border-color: var(--accent);
    color: var(--primary);
}

.btn:hover::before {
    left: 0;
}

.btn.loading .btn-text {
    visibility: hidden;
}

.btn.loading .loader-ring {
    display: block;
}

.loader-ring {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 60px;
    text-align: center;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    padding: 0 60px;
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.section-count {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   WORKS / GALLERY SECTION
   ======================================== */

.works-section {
    padding: 100px 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 8px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

.gallery-item:nth-child(1) { grid-column: span 5; grid-row: span 40; }
.gallery-item:nth-child(2) { grid-column: span 4; grid-row: span 50; }
.gallery-item:nth-child(3) { grid-column: span 3; grid-row: span 30; }
.gallery-item:nth-child(4) { grid-column: span 7; grid-row: span 35; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item .overlay span {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

/* Placeholder style for items without images */
.gallery-item .placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
}

.gallery-item:hover .placeholder {
    background: var(--border);
}

.gallery-item .placeholder-icon {
    font-size: 32px;
}

.gallery-item .placeholder-text {
    font-size: 12px;
    color: var(--text-muted);
}

.gallery-item .placeholder-stats {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects-section {
    padding: 100px 60px;
    background: var(--bg-secondary);
}

.projects-list {
    max-width: 900px;
    margin: 0 auto;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.project-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.project-item:hover {
    padding-left: 28px;
    border-bottom-color: transparent;
}

.project-item:hover::before {
    transform: scaleY(1);
}

.project-item:hover .project-name {
    color: var(--accent);
}

.project-item:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

.project-name {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 500;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.project-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 300;
}

.project-arrow {
    font-size: 24px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

/* ========================================
   VIDEOS PAGE
   ======================================== */

.videos-section {
    padding: 140px 60px 80px;
    min-height: 100vh;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.account-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.account-card:hover::before {
    transform: scaleX(1);
}

.account-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.account-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.account-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.account-stats {
    display: flex;
    gap: 24px;
}

.account-stat-num {
    font-size: 18px;
    font-weight: 600;
}

.account-stat-num .accent {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.account-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: 140px 60px 100px;
    min-height: 100vh;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.about-photo {
    position: relative;
}

.about-photo img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.about-photo::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.5;
}

.about-text h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
    font-weight: 300;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    padding: 140px 60px 100px;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.contact-info li:last-child {
    border-bottom: none;
}

.contact-info li i {
    font-size: 18px;
    color: var(--accent);
    width: 24px;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent);
}

.contact-form-container {
    background: var(--bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */

.main-footer {
    padding: 40px 60px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
}

.main-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

.main-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.1);
}

.social-links i {
    font-size: 16px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.social-links a:hover i {
    color: var(--accent);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    padding: 20px 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2000;
}

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

.toast.success-toast {
    border-color: #22c55e;
}

.toast.success-toast i {
    color: #22c55e;
}

.toast.error-toast {
    border-color: #ef4444;
}

.toast.error-toast i {
    color: #ef4444;
}

.toast i {
    font-size: 20px;
}

.toast p {
    font-size: 14px;
}

.toast.hidden {
    display: none;
}

/* ========================================
   NO SCROLL (for mobile menu)
   ======================================== */

html.no-scroll,
body.no-scroll {
    overflow: hidden;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .gallery-item:nth-child(1) { grid-column: span 3; grid-row: span 30; }
    .gallery-item:nth-child(2) { grid-column: span 3; grid-row: span 30; }
    .gallery-item:nth-child(3) { grid-column: span 3; grid-row: span 25; }
    .gallery-item:nth-child(4) { grid-column: span 3; grid-row: span 25; }
    
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 20px 24px;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg);
        padding: 100px 40px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 24px;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .hero-section,
    .works-section,
    .projects-section,
    .videos-section,
    .about-section,
    .contact-section {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-num {
        font-size: 36px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 25;
    }
    
    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .project-arrow {
        opacity: 1;
        transform: translateX(0);
    }
    
    .main-footer {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 40px 24px;
    }
    
    .toast {
        left: 24px;
        right: 24px;
        bottom: 24px;
    }
}

/* ========================================
   AOS CUSTOMIZATION
   ======================================== */

[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}
