/* ==========================================================================
   CSS Reset and Base Styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: #1a202c;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    margin-bottom: 1em;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: #2d3748;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   Header and Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

.nav-menu a {
    font-weight: 500;
    color: #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: #667eea;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
    padding: 6rem 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.8;
}

/* ==========================================================================
   Experience Section
   ========================================================================== */

.experience {
    padding: 6rem 0;
    background: #f7fafc;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-item {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #667eea;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.experience-title {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.experience-company {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.experience-description {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.experience-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.experience-skills li {
    background: #edf2f7;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    text-align: center;
}

/* ==========================================================================
   Education Section
   ========================================================================== */

.education {
    padding: 6rem 0;
    background: white;
}

.education-content {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background: #f7fafc;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.education-item:hover {
    border-color: #667eea;
}

.education-degree {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.education-school {
    color: #667eea;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.education-minor {
    color: #4a5568;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.education-description {
    color: #4a5568;
    line-height: 1.7;
}

/* ==========================================================================
   Achievements Section
   ========================================================================== */

.achievements {
    padding: 6rem 0;
    background: #f7fafc;
}

.achievements-content {
    max-width: 800px;
    margin: 0 auto;
}

.achievements-single-column {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
}

.achievements-category {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.achievements-list {
    margin-bottom: 2rem;
}

.achievement-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.achievement-item:last-child {
    border-bottom: none;
}

.achievement-item strong {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.achievement-detail {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 50vh;
}

.contact .section-title {
    color: white;
}

.contact .section-title::after {
    background: white;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-btn {
    background: white;
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.contact-btn:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: #2d3748;
    color: #a0aec0;
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

/* ==========================================================================
   Mobile Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 1000;
        padding-top: 80px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        transform: translateY(20px);
        opacity: 0;
        animation: fadeInUp 0.3s ease forwards;
    }
    
    .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu li:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu li:nth-child(6) { animation-delay: 0.6s; }
    
    .nav-menu a {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        border-radius: 8px;
    }
    
    .hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .profile-image {
        width: 280px;
        height: 280px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experience-item {
        padding: 2rem;
    }
    
    .education-item {
        padding: 2rem;
    }
    
    .achievements-single-column {
        padding: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .about,
    .experience,
    .education,
    .achievements,
    .contact {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .profile-image {
        width: 240px;
        height: 240px;
    }
    
    .experience-skills {
        grid-template-columns: 1fr;
    }
    
    .hero-description,
    .about-text,
    .contact-text {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Accessibility and Focus States
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .header,
    .hero-actions,
    .contact {
        display: none;
    }
    
    .hero {
        padding: 2rem 0;
        background: white;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .section-title::after {
        display: none;
    }
}
