/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #8B4513;
    --secondary-color: #CD853F;
    --accent-color: #FF6B35;
    --gold-color: #FFD700;
    --background-dark: #1a1a1a;
    --background-light: #f8f6f3;
    --text-dark: #2c2c2c;
    --text-light: #e0e0e0;
    --card-bg: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 20px;
    
    /* Borders */
    --border-radius: 20px;
    --border-radius-small: 10px;
    
    /* Shadows */
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 30px 60px rgba(0, 0, 0, 0.2);
}

body {
    font-family: var(--font-body);
    background: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body.light-mode {
    background: var(--background-light);
    color: var(--text-dark);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Theme Toggle */
#theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

#theme-toggle i {
    font-size: 20px;
    color: var(--text-light);
}

/* Navigation Dots */
.nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

.dot:hover {
    background: var(--gold-color);
    transform: scale(1.2);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
}

.code-tag {
    color: var(--gold-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.resume-btn {
    background: var(--accent-color);
    padding: 10px 20px;
    border-radius: var(--border-radius-small);
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: slideInLeft 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 30px;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.hero-meta i {
    color: var(--accent-color);
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.floating-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.3), rgba(255, 215, 0, 0.3));
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-image:hover .image-overlay {
    opacity: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--accent-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.section-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
    margin: 0 auto;
    border-radius: 2px;
    animation: expandWidth 1s ease-out;
}

/* Journey Section */
.journey {
    padding: var(--section-padding);
    background: var(--background-dark);
}

.journey-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.text-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.text-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent-color);
}

.text-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.text-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.image-stack {
    position: relative;
    height: 500px;
}

.stack-image {
    position: absolute;
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.stack-image:first-child {
    top: 0;
    left: 0;
    z-index: 2;
    animation: slideInRight 1s ease-out;
}

.stack-image:last-child {
    bottom: 0;
    right: 0;
    z-index: 1;
    animation: slideInRight 1s ease-out 0.2s both;
}

.stack-image:hover {
    transform: scale(1.05);
    z-index: 3;
}

/* Gallery Section */
.gallery {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    animation: zoomIn 1s ease-out;
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Experience Section */
.experience {
    padding: var(--section-padding);
    background: var(--background-dark);
}

.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), var(--gold-color));
}

.timeline-item {
    position: relative;
    margin: 60px 0;
    animation: fadeInUp 1s ease-out;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 60px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--background-dark);
    z-index: 2;
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent-color);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Memories Section */
.memories {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.memories-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.memory-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.memory-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent-color);
}

.memory-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.memory-card:hover .memory-icon {
    background: var(--gold-color);
    transform: scale(1.1);
}

.memory-icon i {
    font-size: 2rem;
    color: white;
}

.memory-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.memory-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.final-reflection {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    animation: fadeInUp 1s ease-out;
}

.final-reflection blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
}

.final-reflection blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: -20px;
    left: -20px;
}

.final-reflection cite {
    font-size: 1.1rem;
    color: var(--gold-color);
    font-weight: 600;
}

/* Back to Blog */
.back-to-blog {
    text-align: center;
    padding: 40px 0;
    background: var(--background-dark);
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 30px;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
}

.blog-back-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--background-dark);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.footer-bottom i {
    color: var(--accent-color);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-meta {
        justify-content: center;
        gap: 20px;
    }
    
    .journey-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .image-stack {
        height: 300px;
    }
    
    .stack-image {
        width: 250px;
        height: 150px;
    }
    
    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
    }
    
    .experience-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        padding-left: 60px;
        text-align: left;
    }
    
    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .memories-content {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-nav ul {
        justify-content: center;
    }
    
    .nav-dots {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .text-card,
    .memory-card,
    .timeline-content {
        padding: 20px;
    }
    
    .final-reflection {
        padding: 30px 20px;
    }
    
    .final-reflection blockquote {
        font-size: 1.1rem;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    #navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--background-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    #navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
}

/* Light Mode Styles */
body.light-mode {
    --background-dark: #f8f6f3;
    --text-light: #2c2c2c;
    --glass-bg: rgba(255, 255, 255, 0.8);
}

body.light-mode #navbar {
    background: rgba(248, 246, 243, 0.9);
}

body.light-mode .nav-links a {
    color: var(--text-dark);
}

body.light-mode .hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

body.light-mode .journey {
    background: var(--background-light);
}

body.light-mode .experience {
    background: var(--background-light);
}

body.light-mode .back-to-blog {
    background: var(--background-light);
}

body.light-mode footer {
    background: var(--background-light);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .timeline-marker {
    border-color: var(--background-light);
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}