:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #4facfe;
    --dark: #0f0c29;
    --dark-light: #1a1a2e;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --white: #ffffff;
    --bg: #0a0a0f;
    --card-bg: rgba(26, 26, 46, 0.8);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.5);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at 20% 20%, #20143f 0%, #120a28 45%, #090610 100%);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: all 0.5s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: background 0.5s ease, border-color 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-dot {
    color: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

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

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

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

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

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

.cv-download-btn {
    padding: 0.6rem 1.5rem;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cv-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.theme-toggle {
    background: rgba(102, 126, 234, 0.12);
    border: 2px solid rgba(102, 126, 234, 0.4);
    color: #667eea;
    padding: 0.65rem;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(20deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
}

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

.hero-text {
    z-index: 1;
}

.hero-greeting {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.typing-container {
    margin-bottom: 1.5rem;
    min-height: 50px;
}

.typing-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.cursor {
    color: var(--accent);
    animation: blink 0.7s infinite;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

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

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

.btn-block {
    width: 100%;
    justify-content: center;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    border-radius: 50%;
    isolation: isolate;
}

.image-container::before {
    content: '';
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(79, 172, 254, 0.45) 0%, rgba(118, 75, 162, 0.15) 45%, rgba(15, 12, 41, 0) 75%);
    filter: blur(16px);
    z-index: 0;
    animation: aura-breathe 4.8s ease-in-out infinite;
}

.image-container::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(140deg, rgba(79, 172, 254, 0.85), rgba(102, 126, 234, 0.55), rgba(118, 75, 162, 0.85));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.88;
    z-index: 3;
    pointer-events: none;
    animation: frame-shift 8s linear infinite;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 24px 50px rgba(9, 6, 16, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(26px) scale(0.93);
    animation: portrait-enter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards, portrait-float 5.2s ease-in-out 1.15s infinite;
}

@keyframes portrait-enter {
    0% {
        opacity: 0;
        transform: translateY(26px) scale(0.93);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes aura-breathe {
    0%, 100% {
        opacity: 0.65;
        transform: scale(0.98);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes frame-shift {
    0% {
        filter: hue-rotate(0deg) saturate(1);
    }
    50% {
        filter: hue-rotate(12deg) saturate(1.2);
    }
    100% {
        filter: hue-rotate(0deg) saturate(1);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    position: relative;
    animation: scroll-down 2s infinite;
}

.mouse::before {
    content: '';
    width: 6px;
    height: 10px;
    background: var(--primary);
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

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

/* ==================== SECTIONS ==================== */
section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: var(--dark-light);
}

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

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-specialties {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.specialty-card {
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: var(--transition);
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.specialty-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.specialty-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.specialty-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

.skill-category {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    min-height: 430px;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.soft-skill-card {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 560px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category h3 i {
    color: var(--primary);
}

.skill-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.9rem;
}

.skill-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 100px;
    padding: 0.9rem 0.5rem;
    border-radius: 14px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: var(--transition);
}

.skill-logo-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(79, 172, 254, 0.8);
    box-shadow: 0 0 18px rgba(79, 172, 254, 0.28);
    background: rgba(79, 172, 254, 0.12);
}

.skill-logo-item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px;
}

.skill-logo-item img.logo-invert {
    /* Base: theme-specific filters will override this */
    filter: brightness(1);
}

.skill-logo-item span {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    background: var(--dark-light);
}

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

.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: var(--transition);
}

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

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 12, 41, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.2) rotate(10deg);
}

.project-content {
    padding: 2rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-features {
    list-style: none;
    padding: 0;
}

.project-features li {
    color: var(--text-secondary);
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-features li i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* ==================== CERTIFICATIONS SECTION ==================== */
.certifications {
    background: var(--dark-light);
}

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

.cert-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 1.8rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    overflow: hidden;
}

.cert-image {
    width: 100%;
    height: 170px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cert-card:hover .cert-image img {
    transform: scale(1.04);
}

.cert-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.cert-card:hover::after {
    opacity: 1;
}

.cert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cert-issuer-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.cert-issuer-logo.aws          { background: rgba(255, 153,   0, 0.15); color: #FF9900; }
.cert-issuer-logo.microsoft    { background: rgba(  0, 164, 239, 0.15); color: #00A4EF; }
.cert-issuer-logo.coursera     { background: rgba( 77, 140, 245, 0.15); color: #4d8cf5; }
.cert-issuer-logo.freecodecamp { background: rgba(  0, 210, 106, 0.15); color: #00D26A; }
.cert-issuer-logo.forage       { background: rgba(139, 111, 245, 0.15); color: #8B6FF5; }
.cert-issuer-logo.certifyme    { background: rgba( 76, 175,  80, 0.15); color: #4CAF50; }

.cert-date-badge {
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.cert-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
}

.cert-org {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cert-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.3rem;
}

.cert-skill-tag {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.28rem 0.7rem;
    border-radius: 20px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    color: var(--accent);
}

.cert-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.65rem 1.2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(79, 172, 254, 0.15));
    border: 1px solid rgba(79, 172, 254, 0.4);
    border-radius: 12px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.cert-link-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(79, 172, 254, 0.25));
    border-color: rgba(79, 172, 254, 0.6);
    transform: translateY(-2px);
}

/* ==================== ACHIEVEMENTS SECTION ==================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.achievement-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.achievement-image {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 1.2rem;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.achievement-card:hover .achievement-image img {
    transform: scale(1.05);
}

.achievement-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.achievement-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.7rem;
}

.achievement-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.achievement-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
}

.achievement-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.65rem 1.2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(79, 172, 254, 0.15));
    border: 1px solid rgba(79, 172, 254, 0.4);
    border-radius: 12px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.achievement-link-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(79, 172, 254, 0.25));
    border-color: rgba(79, 172, 254, 0.6);
    transform: translateY(-2px);
}

/* ==================== EDUCATION SECTION ==================== */
.education {
    background: var(--dark-light);
}

.edu-timeline {
    position: relative;
    padding-left: 3.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.edu-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(102, 126, 234, 0.1));
}

.edu-item {
    position: relative;
    margin-bottom: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 2rem;
    transition: var(--transition);
}

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

.edu-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.edu-dot {
    position: absolute;
    left: -2.8rem;
    top: 1.85rem;
    width: 16px;
    height: 16px;
    background: var(--primary-gradient);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.8);
    flex-shrink: 0;
}

.edu-year {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.edu-status-badge {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.35);
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.74rem;
    color: var(--accent);
    font-weight: 700;
}

.edu-degree {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.edu-field {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.edu-institution {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
}

.edu-institution i {
    color: var(--primary);
    margin-right: 0.4rem;
}

.edu-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.edu-points {
    margin-left: 1.1rem;
    color: var(--text-primary);
}

.edu-points li {
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 600;
}

.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    color: var(--primary);
}

/* ==================== CONTACT SECTION ==================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-cta {
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.contact-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-cta p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact-form {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(102, 126, 234, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}

.form-message.success {
    color: #10b981;
}

.form-message.error {
    color: #ef4444;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-light);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    text-align: center;
    color: var(--text-secondary);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom i {
    color: #ef4444;
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .hero-content,
    .about-content,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .soft-skill-card {
        max-width: 100%;
    }

    .projects-grid,
    .certs-grid,
    .achievements-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .container,
    .nav-container,
    .hero-content,
    .footer-content,
    .footer-bottom {
        max-width: 980px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 992px) {
    section {
        padding: 5rem 1.5rem;
    }

    .hero {
        padding: 6.5rem 1.5rem 2rem;
    }

    .hero-content {
        gap: 2.5rem;
    }

    .hero-description,
    .about-text p,
    .contact-cta p {
        font-size: 1rem;
    }

    .skills-grid,
    .projects-grid,
    .certs-grid,
    .achievements-grid,
    .contact-content {
        gap: 1.5rem;
    }

    .skill-category {
        min-height: auto;
    }

    .project-content,
    .achievement-card,
    .cert-card,
    .edu-item,
    .contact-form,
    .contact-cta {
        padding: 1.5rem;
    }

    .edu-item:hover,
    .contact-item:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4.2rem 1rem;
    }

    .navbar {
        padding: 0.7rem 0;
    }

    .nav-container {
        padding: 0 1rem;
        gap: 0.6rem;
    }

    .logo {
        font-size: 1.55rem;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
        padding: 0.5rem;
        font-size: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 12, 41, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: start;
        padding: 5.5rem 1.5rem 2rem;
        overflow-y: auto;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu .nav-link,
    .nav-menu .cv-download-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .nav-menu .nav-link {
        padding: 0.85rem 0;
        font-size: 1rem;
    }

    .nav-menu .cv-download-btn {
        margin-top: 0.75rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-name {
        font-size: 2.5rem;
    }

    .hero {
        min-height: auto;
        padding: 7.4rem 1rem 2rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-image {
        margin-top: 0.5rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons,
    .social-links {
        justify-content: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .image-container {
        width: min(78vw, 320px);
        height: min(78vw, 320px);
    }

    .image-container::before {
        inset: -16px;
    }

    .image-container::after {
        inset: -8px;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .about-specialties {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-category,
    .project-card,
    .cert-card,
    .achievement-card,
    .edu-item,
    .contact-form,
    .contact-cta,
    .contact-item {
        border-radius: 16px;
    }

    .skill-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skill-logo-item {
        min-height: 88px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 220px;
    }
    
    .certs-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .edu-timeline {
        padding-left: 2.5rem;
    }

    .edu-item {
        padding: 1.35rem;
    }

    .edu-dot {
        left: -2.35rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.35rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer {
        padding: 3rem 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3.7rem 0.9rem;
    }

    .navbar {
        padding: 0.62rem 0;
    }

    .nav-container {
        padding: 0 0.8rem;
    }

    .logo {
        font-size: 1.42rem;
    }

    .hero {
        padding-top: 7.1rem;
    }

    .hero-name {
        font-size: 2.05rem;
    }

    .typing-text {
        font-size: 1.18rem;
    }

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

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.82rem 1rem;
        font-size: 0.95rem;
    }

    .image-container {
        width: min(82vw, 290px);
        height: min(82vw, 290px);
    }

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

    .about-text h3,
    .contact-cta h3 {
        font-size: 1.5rem;
    }

    .project-content,
    .cert-card,
    .achievement-card,
    .edu-item,
    .contact-form,
    .contact-cta,
    .contact-item {
        padding: 1rem;
    }

    .project-image {
        height: 200px;
    }

    .skill-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .skill-logo-item span {
        font-size: 0.76rem;
    }

    .cert-header {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .cert-image {
        height: 145px;
    }

    .achievement-image {
        height: 155px;
        margin-bottom: 0.8rem;
    }

    .cert-date-badge {
        font-size: 0.72rem;
    }

    .edu-timeline {
        padding-left: 2rem;
    }

    .edu-dot {
        left: -1.9rem;
        width: 13px;
        height: 13px;
    }

    .contact-item {
        gap: 0.8rem;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}
