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

:root {
    --primary-red: #e63946;
    --dark-bg: #0a0a0a;
    --dark-section: rgba(10, 10, 10, 0.85);
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --border-red: rgba(230, 57, 70, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scroll Progress Indicator */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 10001;
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
    box-shadow: 0 0 20px var(--primary-red),
                0 0 40px var(--primary-red),
                0 0 60px rgba(230, 57, 70, 0.5);
    transition: width 0.1s ease-out;
    position: relative;
}

.scroll-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    filter: blur(8px);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.8;
        box-shadow: 0 0 20px var(--primary-red);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 30px var(--primary-red),
                    0 0 50px rgba(230, 57, 70, 0.8);
    }
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: #fff;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.8;
}

.progress-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 12px;
    border-radius: 1px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-red);
    transition: width 0.1s ease;
}

.progress-text {
    font-size: 12px;
    opacity: 0.5;
    letter-spacing: 1px;
}

/* Canvas Background */
#animation-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Main Content */
.content {
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

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

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--primary-red);
    font-size: 18px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-cta {
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cta:hover {
    background: var(--primary-red);
    color: var(--text-white);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    padding: 100px 40px;
    transition: right 0.4s ease;
}

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

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

/* Section Styling */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    position: relative;
}

.section-inner {
    max-width: 1200px;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 80px 60px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.section-tag {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

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

.hero-inner {
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
}

.hero-text {
    max-width: 700px;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--text-gray);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 80px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-name {
    color: var(--primary-red);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

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

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

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-ghost:hover {
    border-color: var(--text-white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

/* About Section */
.about-content {
    max-width: 700px;
}

.about-text {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 30px 0;
}

.about-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-gray);
}

.about-detail i {
    color: var(--primary-red);
    font-size: 20px;
    width: 24px;
}

.about-detail strong {
    color: var(--text-white);
    display: block;
    margin-bottom: 4px;
}

/* Developer Journey Timeline */
.journey-icon {
    color: var(--primary-red);
    margin-right: 12px;
    font-size: 42px;
}

.journey-subtitle {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 60px;
    font-style: italic;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent,
        var(--primary-red) 10%,
        var(--primary-red) 90%,
        transparent
    );
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    width: 50px;
    text-align: center;
    z-index: 2;
}

.timeline-content {
    position: relative;
    margin-left: 100px;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    left: -41px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--primary-red);
    border: 3px solid var(--dark-bg);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-red);
    transition: all 0.4s ease;
    z-index: 3;
}

.timeline-item.animate-in .timeline-marker {
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px var(--primary-red), 0 0 0 6px rgba(230, 57, 70, 0.3);
    }
    50% {
        box-shadow: 0 0 0 3px var(--primary-red), 0 0 0 12px rgba(230, 57, 70, 0);
    }
}

.timeline-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-card:hover {
    background: rgba(230, 57, 70, 0.03);
    border-color: var(--border-red);
    transform: translateX(8px);
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.timeline-future {
    border-color: rgba(230, 57, 70, 0.3);
    background: rgba(230, 57, 70, 0.05);
}

.timeline-future h3 {
    color: var(--primary-red);
}

.timeline-future:hover {
    border-color: var(--primary-red);
    background: rgba(230, 57, 70, 0.08);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.2);
}

/* Copy button styling */
.timeline-copy-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-copy-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-year {
        position: static;
        margin-bottom: 12px;
        text-align: left;
        font-size: 16px;
    }

    .timeline-content {
        margin-left: 40px;
        padding-left: 30px;
    }

    .timeline-marker {
        left: -31px;
        width: 12px;
        height: 12px;
    }

    .timeline-card {
        padding: 20px 24px;
    }

    .timeline-card h3 {
        font-size: 18px;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: transparent;
    border-color: var(--border-red);
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: transparent;
    border-color: var(--border-red);
    transform: translateY(-5px);
}

.project-thumb {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-red);
    margin-bottom: 24px;
}

.project-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.project-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.skill-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: transparent;
    border-color: var(--border-red);
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 36px;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.language-icon {
    font-size: 32px;
}

.telugu-icon,
.odia-icon,
.hindi-icon {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-red);
    display: inline-block;
    transform: translateY(-1px);
}

.skill-card span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
}

/* Achievements & Certifications */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.achievement-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.achievement-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.achievement-card:hover {
    background: rgba(230, 57, 70, 0.02);
    border-color: var(--border-red);
    transform: translateY(-8px);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-red);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
}

.achievement-content {
    flex: 1;
}

.achievement-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}

.achievement-issuer {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 4px;
}

.achievement-date {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.achievement-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.achievement-link:hover {
    gap: 10px;
    opacity: 0.8;
}

.achievement-link i {
    font-size: 11px;
}

/* Education */
.education-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.edu-icon {
    width: 70px;
    height: 70px;
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-red);
    flex-shrink: 0;
}

.edu-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
}

.edu-info p {
    color: var(--text-gray);
    margin-bottom: 4px;
}

.edu-info span {
    font-size: 14px;
    color: var(--text-gray);
}

/* Contact */
.contact-desc {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 40px;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.contact-link-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.contact-link-card:hover {
    background: transparent;
    border-color: var(--border-red);
    transform: translateY(-3px);
}

.contact-link-card i {
    font-size: 24px;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.contact-link-card strong {
    font-size: 16px;
}

.contact-link-card span {
    font-size: 13px;
    color: var(--text-gray);
}

.contact-form-area {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.contact-form-area h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 700;
}

.contact-form-area p {
    color: var(--text-gray);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Final Section */
.final-section {
    min-height: 80vh;
}

.final-inner {
    text-align: center;
    background: transparent;
    max-width: 800px;
}

.quote-icon {
    font-size: 48px;
    color: var(--primary-red);
    margin-bottom: 30px;
    opacity: 0.5;
}

.quote-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.quote-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    margin: 0 auto 30px;
}

.quote-sub {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Footer */
.footer {
    padding: 28px 40px 22px;
    background: rgba(10, 10, 10, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-tagline {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 6px;
}

.footer-thanks {
    color: var(--text-gray);
    margin-bottom: 18px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 60px;
    }

    .section-title {
        font-size: 38px;
    }

    .section-inner {
        padding: 60px 40px;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .education-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .quote-text {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 20px;
    }

    .section {
        padding: 80px 20px;
    }

    .section-inner {
        padding: 40px 30px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section-title {
        font-size: 32px;
    }

    .quote-text {
        font-size: 26px;
    }

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

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

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

::-webkit-scrollbar-thumb {
    background: rgba(230, 57, 70, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* ========================================
   FRAMER MOTION-STYLE ANIMATIONS
   ======================================== */

/* Base animation states */
.section {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Fade in down animation for nav */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-down {
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Card animations */
.service-card,
.project-card,
.skill-card,
.contact-link-card,
.about-detail {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.animate-in,
.project-card.animate-in,
.skill-card.animate-in,
.contact-link-card.animate-in,
.about-detail.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Button hover animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Ripple effect */
.btn-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(15);
        opacity: 0;
    }
}

/* Button outline hover */
.btn-outline {
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(230, 57, 70, 0.4);
}

.btn-outline span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover span {
    transform: translateX(5px);
}

/* Ghost button hover */
.btn-ghost:hover {
    background: rgba(230, 57, 70, 0.1);
    transform: translateY(-2px);
}

/* Card hover effects */
.service-card,
.skill-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.service-card:hover,
.skill-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.2);
    border-color: var(--primary-red);
}

.service-card .service-icon,
.skill-card .skill-icon {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-icon,
.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-red);
}

/* Project card hover */
.project-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(230, 57, 70, 0.25);
    border-color: var(--primary-red);
}

.project-card .project-thumb {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb {
    background: rgba(230, 57, 70, 0.15);
}

/* Contact link cards */
.contact-link-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link-card:hover {
    transform: translateY(-6px);
    background: rgba(230, 57, 70, 0.1);
    border-color: var(--primary-red);
    box-shadow: 0 16px 32px rgba(230, 57, 70, 0.2);
}

.contact-link-card i {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-red);
}

/* Section title word animation */
.section-title .word {
    display: inline-block;
    opacity: 0;
    animation: wordFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Section tag slide in */
.section-tag {
    transition: transform 0.3s ease-out;
}

/* Nav logo pulse */
.nav-logo.pulse {
    animation: logoPulse 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hero text smooth transitions */
.hero-text {
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Education card animation */
.education-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(230, 57, 70, 0.15);
}

.education-card .edu-icon {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.education-card:hover .edu-icon {
    transform: scale(1.1) rotate(-5deg);
    color: var(--primary-red);
}

/* Footer social icons */
.footer-socials a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-socials a:hover {
    transform: translateY(-4px) scale(1.1);
    background: var(--primary-red);
    box-shadow: 0 8px 16px rgba(230, 57, 70, 0.3);
}

/* Scroll indicator animation */
.scroll-indicator {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator .mouse {
    animation: mouseScroll 1.5s ease-in-out infinite;
}

@keyframes mouseScroll {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* Nav CTA button animation */
.nav-cta {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

.nav-cta span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover span {
    transform: translateX(4px);
}

/* Quote section animation */
.quote-text {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-section.animate-in .quote-text {
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/*-------------------------------------------------------------------------------------------------------------------------------*/
/* =========================================
   ACHIEVEMENT COMPANY LOGOS
   ========================================= */

.achievement-icon {
    width: 68px;
    height: 68px;
    min-width: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1.5px solid rgba(230, 57, 70, 0.8);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.04);

    overflow: hidden;

    transition: all 0.3s ease;
}

.achievement-icon img {
    width: 42px;
    height: 42px;

    object-fit: contain;

    display: block;

    transition: transform 0.3s ease;
}

/* Hover */

.achievement-card:hover .achievement-icon {
    border-color: #e63946;

    background: rgba(230, 57, 70, 0.08);

    box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);

    transform: translateY(-3px);
}

.achievement-card:hover .achievement-icon img {
    transform: scale(1.1);
}


/* Mobile */

@media (max-width: 768px) {

    .achievement-icon {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }

    .achievement-icon img {
        width: 36px;
        height: 36px;
    }

}