/* --- ELEGANT PREMIUM VARIABLES --- */
:root {
    /* Sophisticated Dark Palette */
    --bg-base: #0a0a0b; 
    --surface-color: #121214;
    --surface-hover: #18181b;
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    
    /* Subtle Elegance Accents */
    --accent-color: #e4d5b7; 
    --accent-glow: rgba(228, 213, 183, 0.15);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center bottom;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: var(--font-heading);
    font-weight: 500;
}

a { text-decoration: none; color: inherit; }

/* --- AMBIENT LIGHTING --- */
.ambient-light {
    position: fixed;
    width: 60vw;
    height: 60vh;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

.light-top {
    top: -30vh;
    right: -20vw;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
}

.light-bottom {
    bottom: -30vh;
    left: -20vw;
    background: radial-gradient(circle, var(--accent-glow), transparent);
}

/* --- UTILITIES --- */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding { padding-top: 150px; }
.text-center { text-align: center; }

.section-heading {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    padding: 16px 36px;
    background: var(--text-primary);
    color: var(--bg-base);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 100px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    background: var(--accent-color);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 300;
}

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

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    padding-right: 5%;
}

.pre-title {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.2rem);
    line-height: 1.1;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.8;
    max-width: 550px;
}

.personal-info {
    font-size: 0.9rem;
    padding: 10px 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    display: inline-block;
    border: 1px solid var(--border-color);
}
.personal-info strong { color: var(--text-primary); font-weight: 500;}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Social Icons in Hero */
.social-links-container {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--bg-base);
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.avatar-container {
    position: relative;
    width: clamp(280px, 30vw, 400px);
    height: clamp(350px, 35vw, 500px);
    border-radius: 20px;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.05);
    transition: var(--transition);
}

.avatar-container:hover .avatar-image {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.02);
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: rgba(20, 20, 22, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.floating-badge .dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* --- STATS OVERLAY --- */
.stats-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-block { text-align: center; }
.stat-block h3 { font-size: 2.5rem; font-weight: 300; margin-bottom: 5px;}
.stat-block p { color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 50px; background-color: var(--border-color); }

/* --- BENTO CARDS --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.bento-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.bento-large { grid-column: span 2; }
.card-icon { font-size: 2.2rem; color: var(--accent-color); margin-bottom: 20px; }
.bento-card h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: 15px; }
.bento-card p { color: var(--text-secondary); font-weight: 300; line-height: 1.7; }

/* Skills Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}
.tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* Cert List */
.cert-list {
    list-style: none;
    margin-top: 15px;
}
.cert-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.cert-list i { color: var(--accent-color); font-size: 1.2rem;}


/* --- TIMELINE (RESUME) --- */
.timeline-container {
    max-width: 1000px;
    position: relative;
    padding-left: 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -44px;
    top: 30px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 10px var(--bg-base);
}

.timeline-date {
    display: block;
    color: var(--accent-color);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.company-name {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.experience-bullets {
    list-style: none;
    padding-left: 0;
}
.experience-bullets li {
    position: relative;
    padding-left: 15px;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 0.95rem;
}
.experience-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* --- YOUTUBE SLIDER --- */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.slider-controls {
    display: flex;
    gap: 15px;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--text-primary);
    color: var(--bg-base);
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 30px;
}

.slide {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
    padding: 15px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.slide-info p {
    font-size: 0.9rem;
}

/* --- CONTACT SECTION --- */
.contact-section { max-width: 800px; margin: 0 auto; padding-bottom: 100px; }
.contact-header { text-align: center; margin-bottom: 50px; }
.contact-header h2 { font-size: 2.5rem; margin-bottom: 15px; }

.elegant-form { display: flex; flex-direction: column; gap: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.input-group label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; text-transform: uppercase; }
.input-group input, .input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}
.input-group input:focus, .input-group textarea:focus { border-bottom-color: var(--accent-color); }
.form-submit { margin-top: 20px; align-self: flex-start; }

/* --- FOOTER --- */
.elegant-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 5%;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-color); }

/* --- ANIMATIONS --- */
.animate-fade-down { animation: fadeDown 1.2s forwards; }
.animate-fade-up { animation: fadeUp 1.2s forwards; }
.animate-fade-in { opacity: 0; animation: fadeIn 1.5s forwards; }

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.active { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-section { flex-direction: column; padding-top: 120px; text-align: center; }
    .hero-content { padding-right: 0; margin-bottom: 50px; }
    .hero-actions { justify-content: center; flex-direction: column;}
    .stats-section { flex-direction: column; gap: 30px; }
    .stat-divider { width: 100px; height: 1px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; }
    .slide { min-width: calc(50% - 15px); }
    .footer-content { flex-direction: column; gap: 20px; text-align: center;}
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .slide { min-width: 100%; }
    .form-row { grid-template-columns: 1fr; }
}
