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

:root {
    /* Colors */
    --background: hsl(220, 26%, 14%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(220, 23%, 18%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(217, 91%, 60%);
    --primary-foreground: hsl(220, 26%, 14%);
    --secondary: hsl(220, 14%, 96%);
    --secondary-foreground: hsl(220, 26%, 14%);
    --accent: hsl(262, 83%, 58%);
    --accent-foreground: hsl(210, 40%, 98%);
    --muted: hsl(220, 23%, 18%);
    --muted-foreground: hsl(220, 14%, 71%);
    --border: hsl(220, 23%, 18%);
    
    /* Professional Portfolio Colors */
    --hero-gradient-start: hsl(217, 91%, 60%);
    --hero-gradient-end: hsl(262, 83%, 58%);
    --section-background: hsl(220, 23%, 18%);
    --section-background-alt: hsl(220, 26%, 14%);
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(220, 14%, 71%);
    --text-accent: hsl(217, 91%, 60%);
    --timeline-line: hsl(220, 23%, 18%);
    --timeline-dot: hsl(217, 91%, 60%);
    --hover-overlay: hsl(217, 91%, 60%);
    --glass-background: hsl(220, 23%, 18%);
    
    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsla(217, 91%, 60%, 0.3);
    --shadow-glow: 0 0 40px hsla(217, 91%, 60%, 0.2);
    --shadow-card: 0 4px 20px -4px hsla(0, 0%, 0%, 0.4);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Fonts */
    --font-inter: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 32rem;
    margin: 0 auto;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.text-accent {
    color: var(--text-accent);
}

.section-header {
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: hsla(217, 91%, 60%, 0.9);
    transform: scale(1.05);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.05);
}

.full-width {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: hsla(220, 26%, 14%, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsla(217, 91%, 60%, 0.2);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsla(217, 91%, 60%, 0.2);
}

.mobile-link {
    text-align: left;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hero-gradient-start), var(--hero-gradient-end));
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
    padding: 5rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-title-accent {
    display: block;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--primary);
    transform: scale(1.1);
}

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

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid var(--primary);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
}

.scroll-wheel {
    width: 0.25rem;
    height: 0.75rem;
    background-color: var(--primary);
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
}

/* Sections */
.about-section,
.timeline-section,
.contact-section {
    padding: 5rem 0;
    background-color: var(--section-background);
}

.family-section,
.future-section {
    padding: 5rem 0;
    background-color: var(--section-background-alt);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-text p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-header {
    display: flex;
    justify-content: between;
    align-items: center;
}

.skill-header span:first-child {
    color: var(--text-secondary);
}

.skill-percentage {
    color: var(--primary);
}

.skill-bar {
    width: 100%;
    height: 0.5rem;
    background-color: var(--section-background-alt);
    border-radius: 0.25rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary);
    border-radius: 0.25rem;
    transition: width 1s ease-out;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--section-background), var(--section-background-alt));
    border: 1px solid hsla(217, 91%, 60%, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.stat-card:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.stat-icon {
    margin: 0 auto 1rem;
    color: var(--primary);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
}

/* Family Section */
.family-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.value-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--primary);
    border-radius: 50%;
}

.value-item span {
    color: var(--text-secondary);
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.family-card {
    background: linear-gradient(135deg, var(--section-background), var(--section-background-alt));
    border: 1px solid hsla(217, 91%, 60%, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.family-card:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.family-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.family-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.family-role {
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.family-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Timeline Section */
.timeline-content {
    max-width: 64rem;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--timeline-line);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
}

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

.timeline-dot {
    position: relative;
    z-index: 10;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    margin-right: 1.5rem;
}

.timeline-dot.work {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.timeline-dot.education {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.timeline-dot.achievement {
    background-color: var(--hero-gradient-end);
    color: var(--primary-foreground);
}

.timeline-content-box {
    flex: 1;
    background: linear-gradient(135deg, var(--section-background), var(--section-background-alt));
    border: 1px solid hsla(217, 91%, 60%, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.timeline-content-box:hover {
    box-shadow: var(--shadow-glow);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.timeline-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.875rem;
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.company {
    font-weight: 500;
}

.separator {
    color: var(--primary);
}

.location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Future Section */
.future-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.aspirations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.aspiration-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.aspiration-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--primary);
    border-radius: 50%;
}

.aspiration-item span {
    color: var(--text-secondary);
}

.aspirations-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-metrics {
    background: linear-gradient(135deg, var(--section-background), var(--section-background-alt));
    border: 1px solid hsla(217, 91%, 60%, 0.2);
    border-radius: 0.5rem;
    padding: 2rem;
}

.metrics-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-item {
    border-left: 4px solid;
    padding-left: 1rem;
}

.metric-item.primary {
    border-color: var(--primary);
}

.metric-item.accent {
    border-color: var(--accent);
}

.metric-item.gradient {
    border-color: var(--hero-gradient-end);
}

.metric-period {
    font-weight: 600;
    color: var(--text-primary);
}

.metric-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.goal-card {
    background: linear-gradient(135deg, var(--section-background), var(--section-background-alt));
    border: 1px solid hsla(217, 91%, 60%, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.goal-card:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.goal-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.goal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.goal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.goal-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background-color: hsla(217, 91%, 60%, 0.1);
}

.goal-category.professional {
    color: var(--primary);
}

.goal-category.community {
    color: var(--accent);
}

.goal-category.personal {
    color: var(--hero-gradient-end);
}

.goal-category.social {
    color: var(--timeline-dot);
}

.goal-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.goal-timeline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.875rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background-color: hsla(217, 91%, 60%, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-details h4 {
    font-weight: 600;
    color: var(--text-primary);
}

.contact-details a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.social-section {
    margin-top: 2rem;
}

.social-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 3rem;
    height: 3rem;
    background-color: hsla(217, 91%, 60%, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.1);
}

.contact-form-container {
    background: linear-gradient(135deg, var(--section-background), var(--section-background-alt));
    border: 1px solid hsla(217, 91%, 60%, 0.2);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    background-color: var(--section-background-alt);
    border: 1px solid hsla(217, 91%, 60%, 0.2);
    border-radius: 0.375rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(217, 91%, 60%, 0.1);
}

.form-group textarea {
    resize: none;
}

.footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsla(217, 91%, 60%, 0.2);
}

.footer p {
    color: var(--text-secondary);
}

/* Visitor Counter */
.visitor-counter {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    background-color: hsla(220, 23%, 18%, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(217, 91%, 60%, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: var(--shadow-elegant);
}

.visitor-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.visitor-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.visitor-item svg {
    color: var(--primary);
}

.visitor-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

#currentTime {
    margin-bottom: 0.25rem;
}

/* Toast */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    background-color: var(--card);
    border: 1px solid hsla(217, 91%, 60%, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: var(--shadow-elegant);
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.toast-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: hsla(120, 100%, 40%, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(120, 100%, 40%);
}

.toast-message h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.toast-message p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.5s both;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .about-content,
    .family-content,
    .future-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .hero-title {
        font-size: 5rem;
    }
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav.active {
        display: flex;
    }
    
    .timeline-line {
        left: 1rem;
    }
    
    .timeline-dot {
        width: 2rem;
        height: 2rem;
    }
    
    .visitor-counter {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.75rem;
    }
    
    .visitor-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--section-background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsla(217, 91%, 60%, 0.8);
}