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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Landing Screen */
.landing-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-screen.slide-up {
    transform: translateY(-100%);
}

.landing-content {
    text-align: center;
}

.landing-text {
    font-size: 4rem;
    font-weight: 600;
    color: #333;
    opacity: 0;
    animation: fadeInScale 1s ease-out 0.5s forwards;
    transition: opacity 0.1s ease-in-out;
    min-height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.main-content.visible {
    opacity: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.nav-brand a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: #6366f1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #6366f1;
}

@keyframes float {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: slideInUp 1s ease-out 1.3s forwards;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

.btn-primary:hover {
    background: #5855eb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #6366f1;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

/* About Section */
.about-section {
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-photo {
    text-align: center;
}

.resume-button-container {
    margin-bottom: 2rem;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 10px 20px;
}

.profile-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.fun-facts {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fun-fact {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.7;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
}

.fun-fact.active {
    opacity: 1;
    transform: scale(1.05);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #64748b;
}

/* Timeline */
.timeline {
    margin-top: 3rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #6366f1;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 4rem;
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: -35px;
    top: 0;
    width: 70px;
    height: 30px;
    background: #6366f1;
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #64748b;
}

/* About Experience Section */
.about-experience {
    margin-top: 3rem;
}

.about-experience h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 0.5rem;
}

/* About Education Section */
.about-education {
    margin-top: 2rem;
}

.about-education h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 0.5rem;
}

.education-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.education-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.education-school {
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.education-period {
    color: #6366f1;
    font-weight: 500;
    font-size: 0.9rem;
}

.education-details {
    color: #64748b;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* About Certifications Section */
.about-certifications {
    margin-top: 3rem;
}

.about-certifications h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 0.5rem;
}

/* Skills Section */
.skills-section {
    background: white;
}

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

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-item i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #6366f1;
}

.skill-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* Projects Section */
.projects-section {
    background: #f8fafc;
}

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

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    color: #6366f1;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-content p {
    color: #64748b;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.3rem 0.8rem;
    background: #e0e7ff;
    color: #6366f1;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Resume Section */
.resume-section {
    background: white;
}

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

.resume-download {
    text-align: center;
    margin-bottom: 3rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.resume-interactive {
    display: grid;
    gap: 3rem;
}

.resume-section-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 0.5rem;
}

.education-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.education-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.education-school {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.education-period {
    color: #6366f1;
    font-weight: 500;
}

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

.cert-badge {
    padding: 0.5rem 1rem;
    background: #6366f1;
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

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

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

.footer-social .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-text {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-item::before {
        left: -25px;
        width: 50px;
        font-size: 0.8rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-social {
        order: 2;
    }
    
    .footer p {
        order: 1;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .landing-text {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-name {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Smooth scrolling animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5855eb;
}
