/* CSS Variables & Theme */
:root {
    --bg-main: #0a0a1a;
    --bg-alt: #0f0f24;
    --accent-gold: #d4a574;
    --accent-gold-hover: #b88b5d;
    --accent-cyan: #4ecdc4;
    --text-main: #e8e6e3;
    --text-muted: #a0a0b5;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utilities */
.accent {
    color: var(--accent-gold);
}
.accent-cyan {
    color: var(--accent-cyan);
}
.subtitle {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 400;
}
.lead-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Layout & Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.section {
    padding: 6rem 0;
}
.bg-alt {
    background-color: var(--bg-alt);
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.85);
    z-index: 0;
}
.relative { position: relative; }
.z-1 { z-index: 1; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}
.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-main);
}
.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}
.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--bg-main);
}
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-link i {
    transition: transform 0.3s ease;
}
.btn-link:hover i {
    transform: translateX(5px);
}
.w-100 { width: 100%; }

/* Glassmorphism Elements */
.glass-card, .glass-form, .glass-badge {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}
.glass-card {
    padding: 2.5rem;
    transition: var(--transition);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 2px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-links a:hover {
    color: var(--accent-gold);
}
.nav-cta {
    border: 1px solid var(--accent-gold);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    color: var(--accent-gold) !important;
}
.nav-cta:hover {
    background: var(--accent-gold);
    color: var(--bg-main) !important;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(0.3) saturate(1.2);
    transform: scale(1.05);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}
.hero-content h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}
.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Typing Effect */
.typing-effect {
    display: inline-block;
    border-right: 2px solid var(--accent-cyan);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-cyan); }
}

/* About Section */
.image-wrapper {
    position: relative;
}
.profile-img {
    border-radius: 12px;
    filter: grayscale(20%) contrast(1.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}
.glass-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.glass-badge i {
    color: var(--accent-gold);
}
.personal-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}
.personal-text p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text-main);
    border-left: 3px solid var(--accent-cyan);
    padding-left: 1rem;
}

/* Vision Section */
.card-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}
.vision-footer {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 1.15rem;
    font-style: italic;
    font-family: var(--font-heading);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--glass-border);
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: 15px;
    top: 30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}
.timeline-date {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(78, 205, 196, 0.1);
    color: var(--accent-cyan);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.timeline-content h3 {
    margin-bottom: 0.2rem;
}
.timeline-content h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--accent-gold);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Projects */
.project-card {
    display: flex;
    flex-direction: column;
}
.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.tags span {
    font-size: 0.75rem;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
}
.project-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Blog Preview */
.horizontal-card {
    display: flex;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}
.horizontal-card .date {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}
.horizontal-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.horizontal-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Contact Form */
.glass-form {
    padding: 2.5rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.4);
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 1.2rem;
}
.social-icon:hover {
    background: var(--accent-gold);
    color: var(--bg-main);
    transform: translateY(-3px);
}
.mt-2 { margin-top: 2rem; }

/* Footer */
footer {
    background-color: #05050d;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.footer-links p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-cyan);
    color: var(--bg-main);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2000;
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.26, 1.55);
}
.toast.show {
    bottom: 30px;
}

/* Animations */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal {
    transform: translateY(40px);
}
.reveal-left {
    transform: translateX(-40px);
}
.reveal-right {
    transform: translateX(40px);
}
.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive */
@media (max-width: 992px) {
    .layout-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .reveal-left, .reveal-right {
        transform: translateY(40px);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease-in-out;
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        right: 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .timeline::before {
        left: 10px;
    }
    .timeline-dot {
        left: 5px;
    }
    .timeline-item {
        padding-left: 40px;
    }
    .horizontal-card {
        padding: 2rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 40px rgba(212, 165, 116, 0.1);
}

.blog-card .date {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 0;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.blog-card .btn-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.blog-card .btn-link:hover {
    gap: 0.75rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}
