/* =========================================================================
   VARIABLES & DESIGN TOKENS
   ========================================================================= */
:root {
    /* Color Palette */
    --bg-main: #0a0a0c;
    --bg-alt: #111216;
    --bg-card: rgba(26, 27, 33, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Accents */
    --accent-primary: #f59e0b; /* Golden Orange */
    --accent-secondary: #ffedd5;
    --accent-glow: rgba(245, 158, 11, 0.2);
    
    /* Text */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
}

/* =========================================================================
   GLOBAL STYLES
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

/* =========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================= */
.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.highlight-text {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 400;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-main);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    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-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

.logo::after {
    content: '.';
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--text-main);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('assets/hero-bg.png'); /* The generated image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(10,10,12,0.4) 0%, rgba(10,10,12,0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero .subtitle {
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--text-main);
    font-size: 1.5rem;
    opacity: 0.6;
}

.scroll-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Animations for hero elements */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards cubic-bezier(0.1, 0.8, 0.2, 1);
}

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   ABOUT SECTION
   ========================================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-primary), transparent);
    border-radius: 20px;
    z-index: 0;
    opacity: 0.5;
}

.profile-image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg-alt);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    color: var(--text-muted);
}

.profile-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--border-color);
}

.about-content p {
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: rgba(245, 158, 11, 0.05);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    margin: 0;
}

/* =========================================================================
   SKILLS SECTION
   ========================================================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 25px;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.skill-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.skill-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--accent-primary);
    font-size: 1rem;
}

/* =========================================================================
   EXPERIENCE SECTION (TIMELINE)
   ========================================================================= */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 70px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 15px; top: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 4px solid var(--bg-main);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 35px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.timeline-header h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.timeline-header h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

.timeline-details {
    list-style-type: disc;
    padding-left: 20px;
}

.timeline-details li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* =========================================================================
   EDUCATION
   ========================================================================= */
.edu-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    transition: var(--transition);
}

.edu-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.edu-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.edu-text h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.edu-text h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 15px;
}

.edu-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

/* =========================================================================
   CONTACT SECTION
   ========================================================================= */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 50px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

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

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

.personal-details {
    padding-left: 50px;
    border-left: 1px solid var(--border-color);
}

.personal-details h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.personal-details li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.personal-details strong {
    color: var(--text-main);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
    background: #050506;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

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

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

.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-main);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: var(--bg-main);
    transform: translateY(-3px);
}

/* =========================================================================
   UTILITY ANIMATIONS ON SCROLL (JS TRIGGERED)
   ========================================================================= */
.skill-category, .timeline-item, .stat-card, .about-content p {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.skill-category.visible, .timeline-item.visible, .stat-card.visible, .about-content p.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add slight delays for cascading effect */
.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }
.skill-category:nth-child(2) { transition-delay: 0.1s; }
.skill-category:nth-child(3) { transition-delay: 0.2s; }


/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image-wrapper { max-width: 400px; margin: 0 auto; }
    .contact-card { grid-template-columns: 1fr; gap: 40px; }
    .personal-details { padding-left: 0; border-left: none; border-top: 1px solid var(--border-color); padding-top: 30px; }
    .contact-details { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Hide for simple setup, could add hamburger */
    .hero-actions { flex-direction: column; }
    .timeline::before { left: 15px; }
    .timeline-dot { left: 6px; }
    .timeline-item { padding-left: 45px; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}
