/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f766e;
    --primary-dark: #0d5f58;
    --secondary-color: #f0fdfa;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #e0f2f1;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

section {
    padding: 5rem 0;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    animation: expandWidth 0.8s ease forwards;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.nav-brand:hover {
    transform: scale(1.05);
    letter-spacing: 1px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    animation: fadeInUp 1s ease;
}

.hero-content {
    text-align: left;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--bg-accent);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
    display: block;
}

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

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.stat-item:nth-child(1) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.4s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.6s;
}

.stat-number {
    font-family: 'Manrope', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-accent);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.125rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visual-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background-color: var(--bg-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

.profile-inner {
    width: 220px;
    height: 220px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-color);
}

.floating-card {
    position: absolute;
    background-color: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.floating-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-1 {
    top: 10%;
    left: 5%;
    animation: floatCard 4s ease-in-out infinite;
}

.card-2 {
    top: 15%;
    right: 5%;
    animation: floatCard 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 15%;
    left: 0;
    animation: floatCard 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

.card-4 {
    bottom: 10%;
    right: 0;
    animation: floatCard 5.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    background-color: var(--bg-primary);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.about-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateY(-3px);
    color: var(--text-primary);
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: var(--transition);
}

.detail-item:hover i {
    transform: scale(1.2);
}

/* ========================================
   SKILLS SECTION
   ======================================== */

.skills {
    background-color: var(--bg-secondary);
}

.skills-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

.skills-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background-color: var(--bg-primary);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-accent);
    border-radius: 16px;
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1) rotateY(360deg);
}

.nextjs-icon {
    background-color: #000000 !important;
    color: white !important;
}

.nextjs-icon span {
    font-family: 'Manrope', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
}

.skill-card:hover .nextjs-icon {
    background-color: var(--primary-color) !important;
}

.csharp-icon {
    background-color: #68217a !important;
    color: white !important;
}

.csharp-icon span {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.skill-card:hover .csharp-icon {
    background-color: var(--primary-color) !important;
}

.tailwind-icon {
    background-color: #06B6D4 !important;
    color: white !important;
}

.tailwind-icon span {
    font-family: 'Manrope', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.skill-card:hover .tailwind-icon {
    background-color: var(--primary-color) !important;
}

.skill-card h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.skill-card:hover h3 {
    transform: translateY(-3px);
    color: var(--primary-color);
}

.skill-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    transition: var(--transition);
}

.skill-card:hover p {
    color: var(--text-secondary);
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */

.experience {
    background-color: var(--bg-primary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 4px var(--bg-accent);
    animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 4px var(--bg-accent);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px var(--bg-accent);
    }
}

.timeline-content {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

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

.timeline-duration {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-accent);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.timeline-content:hover h3 {
    color: var(--primary-color);
    transform: translateX(5px);
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-light);
}

/* ========================================
   EDUCATION SECTION
   ======================================== */

.education {
    background-color: var(--bg-secondary);
}

.education-flow {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

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

.education-item::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 50px;
    bottom: -30px;
    width: 3px;
    background-color: var(--primary-color);
}

.education-item:last-child::after {
    display: none;
}

.education-number {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 0 0 8px var(--bg-secondary), 0 0 0 10px var(--bg-accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 8px var(--bg-secondary), 0 0 0 10px var(--bg-accent);
    }
    50% {
        box-shadow: 0 0 0 8px var(--bg-secondary), 0 0 0 15px var(--bg-accent);
    }
}

.education-card {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.education-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.education-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-accent);
    border-radius: 12px;
    transition: var(--transition);
}

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

.education-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.education-card:hover .education-icon i {
    color: white;
}

.education-content h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.education-card:hover .education-content h3 {
    color: var(--primary-color);
    transform: translateX(3px);
}

.education-content h4 {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.education-date,
.education-result {
    color: var(--text-light);
    font-size: 0.875rem;
}

.education-result {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects {
    background-color: var(--bg-primary);
}

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

.project-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-accent);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.project-card:hover .project-icon {
    transform: scale(1.15) rotate(5deg);
    background-color: var(--primary-color);
}

.project-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.project-card:hover .project-icon i {
    color: white;
}

.project-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.project-card:hover h3 {
    color: var(--primary-color);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    background-color: var(--bg-secondary);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-hero h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

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

.contact-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-accent);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
    transform: rotate(10deg) scale(1.1);
    background-color: var(--primary-color);
    color: white;
}

.contact-card-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-card-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-card-content a:hover {
    color: var(--primary-dark);
}

.contact-card-content p {
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.card-hint {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Contact Social */
.contact-social {
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: 12px;
}

.contact-social h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background-color: var(--bg-accent);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-btn i {
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-text {
    font-size: 1.125rem;
    color: white;
    font-weight: 500;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: 1.5rem;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
        min-height: auto;
    }

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

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .visual-container {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .profile-circle {
        width: 180px;
        height: 180px;
    }

    .profile-inner {
        width: 160px;
        height: 160px;
        font-size: 3.5rem;
    }

    .floating-card {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .floating-card i {
        font-size: 1.25rem;
    }

    .hero-tag {
        margin: 0 auto 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .highlight {
        display: inline;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .social-links {
        justify-content: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }

    /* Skills Grid */
    .skills-grid-new {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .skill-card {
        padding: 1.5rem 1rem;
    }

    .skill-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-dot {
        left: -30px;
    }

    /* Education */
    .education-flow {
        padding: 0 1rem;
    }

    .education-item {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .education-item::after {
        display: none;
    }

    .education-number {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
        box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 0 6px var(--bg-accent);
    }

    .education-card {
        flex-direction: column;
        padding: 1.25rem;
        width: 100%;
    }

    .education-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    .education-icon i {
        font-size: 1.75rem;
    }

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

    .education-content h3 {
        font-size: 1rem;
    }

    .education-content h4 {
        font-size: 0.875rem;
    }

    .education-meta {
        justify-content: center;
        gap: 1rem;
    }

    .education-date,
    .education-result {
        font-size: 0.8rem;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact-hero h3 {
        font-size: 1.5rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-social-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .visual-container {
        width: 250px;
        height: 250px;
    }

    .profile-circle {
        width: 150px;
        height: 150px;
    }

    .profile-inner {
        width: 130px;
        height: 130px;
        font-size: 2.5rem;
    }

    .floating-card {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .floating-card span {
        display: none;
    }

    .floating-card i {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .skills-subtitle {
        font-size: 1rem;
    }

    .skills-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .skill-card {
        padding: 1.25rem 0.75rem;
    }

    .skill-card h3 {
        font-size: 1rem;
    }

    .skill-card p {
        font-size: 0.75rem;
    }

    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .about-details {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    /* Footer */
    .footer-text {
        font-size: 1rem;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

/* Simple fade-in animation for scroll reveals */
@keyframes simpleFadeIn {
    from {
        opacity: 0.3;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to specific elements */
.skill-card,
.timeline-item,
.project-card,
.education-item,
.contact-card {
    animation: simpleFadeIn 0.6s ease forwards;
    animation-play-state: running;
}
