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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-button {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-button:hover {
    color: #1e40af;
}

.nav-button.active {
    color: #1e40af;
    background-color: #eff6ff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1e40af;
    transition: 0.3s;
}

/* Sections */
.section {
    display: none;
    min-height: 100vh;
    padding-top: 70px;
}

.section.active {
    display: block;
}

/* Hero Section */
.hero-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

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

.hero-description {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #1e40af;
    border-color: #1e40af;
}

.btn-secondary:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.contact-info {
    color: #64748b;
    font-size: 0.95rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-info i {
    width: 16px;
    color: #1e40af;
}

.profile-photo {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.02);
}

/* Highlights Section */
.highlights-section {
    padding: 4rem 0;
    background: white;
}

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

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.highlight-icon i {
    font-size: 1.5rem;
    color: white;
}

.highlight-card h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.highlight-card p {
    color: #64748b;
    line-height: 1.6;
}

/* About Section */
#about {
    background: #f8fafc;
    padding: 4rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.about-card h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1e40af;
}

.education-item {
    margin-bottom: 2rem;
}

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

.education-item h4 {
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.degree, .role {
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.gpa, .description {
    color: #64748b;
    font-size: 0.95rem;
}

.certifications-list {
    list-style: none;
}

.certifications-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #475569;
}

.certifications-list i {
    color: #1e40af;
    width: 16px;
}

.experience-timeline {
    position: relative;
    padding-left: 2rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #1e40af, #e2e8f0);
}

.experience-item {
    position: relative;
    margin-bottom: 2.5rem;
}

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

.experience-marker {
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    background: #1e40af;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #1e40af;
}

.experience-item.current .experience-marker {
    background: #10b981;
    box-shadow: 0 0 0 3px #10b981;
}

.experience-content h4 {
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.location {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.position {
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.experience-content ul {
    list-style: none;
    color: #475569;
}

.experience-content li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.experience-content li::before {
    content: '•';
    color: #1e40af;
    position: absolute;
    left: 0;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.skill-item i {
    color: #1e40af;
    width: 20px;
}

.skill-item span {
    color: #475569;
    font-weight: 500;
}

/* Projects Section */
#projects {
    background: white;
    padding: 4rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-card.featured {
    border: 2px solid #1e40af;
    position: relative;
}

.project-card.featured::before {
    content: 'Featured';
    position: absolute;
    top: -10px;
    left: 2rem;
    background: #1e40af;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon i {
    font-size: 1.25rem;
    color: white;
}

.project-meta {
    text-align: right;
    font-size: 0.85rem;
    color: #64748b;
}

.project-type {
    display: block;
    font-weight: 500;
    color: #1e40af;
}

.project-card h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.project-description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.highlight-tag {
    background: #eff6ff;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

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

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 2rem 0;
}

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

.footer-left p {
    color: #94a3b8;
    margin: 0;
}

.footer-right {
    display: flex;
    gap: 1rem;
}

.footer-link {
    color: #94a3b8;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about-card,
    .project-card,
    .highlight-card {
        padding: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

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

.section.active {
    animation: fadeIn 0.5s ease;
}

/* Focus States for Accessibility */
.nav-button:focus,
.btn:focus,
.footer-link:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }
    
    .section {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .hero-container {
        min-height: auto;
    }
}
