/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    
    /* Neutral Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-secondary);
}

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

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::selection {
    background: var(--primary);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== CURSOR EFFECT ===== */
.cursor, .cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cursor, .cursor-follower {
        display: block;
    }
    
    .cursor {
        width: 8px;
        height: 8px;
        background: var(--primary);
        transform: translate(-50%, -50%);
    }
    
    .cursor-follower {
        width: 30px;
        height: 30px;
        border: 2px solid var(--primary);
        opacity: 0.5;
        transform: translate(-50%, -50%);
        transition: all 0.1s ease;
    }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===== SECTION ===== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xl);
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(99, 102, 241, 0.4);
}

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

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

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

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

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

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

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

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-xl);
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-title .greeting {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.hero-title .name {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-role {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.role-prefix {
    color: var(--text-secondary);
}

.typed-text {
    color: var(--secondary);
    font-weight: 600;
}

.cursor-blink {
    color: var(--primary);
    animation: blink 1s infinite;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 350px;
    height: 350px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    padding: 5px;
    position: relative;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.5;
    filter: blur(20px);
}

.hero-image .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 3px);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: calc(var(--radius-lg) - 3px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--bg-tertiary);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

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

.floating-card span {
    font-weight: 600;
    font-size: 0.875rem;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-1 i { color: #f89820; }

.card-2 {
    top: 20%;
    right: -5%;
    animation-delay: 0.5s;
}

.card-2 i { color: #ff9900; }

.card-3 {
    bottom: 20%;
    left: -15%;
    animation-delay: 1s;
}

.card-3 i { color: #dd0031; }

.card-4 {
    bottom: 10%;
    right: -10%;
    animation-delay: 1.5s;
}

.card-4 i { color: #3776ab; }

/* Hero Scroll */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    max-width: 400px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    padding: 5px;
    position: relative;
    overflow: hidden;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.5;
    filter: blur(20px);
}

.about-img-wrapper .about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 3px);
}

.about-img-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: calc(var(--radius-lg) - 3px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--bg-tertiary);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-primary);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.exp-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
}

.exp-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

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

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--bg-tertiary);
}

.stat-item {
    text-align: center;
}

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

.stat-number::after {
    content: '+';
    -webkit-text-fill-color: var(--primary);
}

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

/* ===== SKILLS SECTION ===== */
.skills {
    background: var(--bg-secondary);
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.skills-category {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-tertiary);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

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

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

.skill-card {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

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

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
}

.skill-card h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.skill-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease;
}

.skill-percent {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-tertiary);
    transition: var(--transition-normal);
}

.tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

.tech-item span {
    font-weight: 500;
}

/* Professional Skills */
.professional-skills {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pro-skill {
    background: var(--bg-secondary);
    padding: 20px 25px;
    border-radius: var(--radius-md);
}

.pro-skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pro-skill-header span:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.pro-skill-header span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.pro-skill-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.pro-skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.timeline-section {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-tertiary);
}

.timeline-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.timeline-title i {
    color: var(--primary);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -35px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
}

.timeline-content {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-tertiary);
    transition: var(--transition-normal);
}

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

.timeline-date {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-content h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-company {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.timeline-list {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.timeline-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.timeline-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.timeline-tags span {
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

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

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

.cert-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--bg-tertiary);
    transition: var(--transition-normal);
}

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

.cert-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

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

.cert-content {
    padding: 20px;
    text-align: center;
}

.cert-content h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.cert-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

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

.project-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--bg-tertiary);
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.project-card.featured {
    grid-column: span 2;
}

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

.project-card.featured .project-image {
    height: 280px;
}

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

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

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition-normal);
}

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

.project-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 1.25rem;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    padding: 6px 14px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.contact-text a,
.contact-text p {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--primary);
}

.contact-social {
    display: flex;
    gap: 15px;
}

.contact-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-tertiary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-normal);
    background: var(--bg-primary);
    padding: 0 5px;
}

.form-group textarea ~ label {
    top: 20px;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.75rem;
    color: var(--primary);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--bg-tertiary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.footer-logo .logo-text {
    font-size: 2rem;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

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

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-description {
        margin: 0 auto 30px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .hero-image {
        width: 280px;
        height: 280px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        display: flex;
        justify-content: center;
    }
    
    .about-details {
        justify-content: center;
    }
    
    .experience-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo p {
        margin: 0 auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transform: translateY(-150%);
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-btn {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-scroll {
        display: none;
    }
    
    .floating-card {
        display: none;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-details {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-title .name {
        font-size: 2rem;
    }
    
    .hero-role {
        font-size: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .skills-category,
    .timeline-section,
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -24px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== LOGO ICON STYLES ===== */
.logo-icon {
    display: flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 8px;
}

.logo-bracket {
    color: var(--primary);
    transition: var(--transition-normal);
}

.logo-slash {
    color: var(--accent);
    transition: var(--transition-normal);
}

.nav-logo:hover .logo-bracket {
    color: var(--primary-light);
}

.nav-logo:hover .logo-slash {
    color: #fbbf24;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* ===== ABOUT HIGHLIGHTS ===== */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 25px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
    transition: var(--transition-normal);
}

.highlight-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

.highlight-item i {
    color: var(--primary);
    font-size: 1rem;
}

.highlight-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== PROJECT PLACEHOLDER GRADIENTS ===== */
.project-placeholder.grad-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255, 255, 255, 0.8);
}

.project-placeholder.grad-2 {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: rgba(255, 255, 255, 0.8);
}

.project-placeholder.grad-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: rgba(255, 255, 255, 0.8);
}

.project-placeholder.grad-4 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: rgba(255, 255, 255, 0.8);
}

/* ===== CERTIFICATE MODAL ===== */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.cert-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.cert-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.cert-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-normal);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: none;
    outline: none;
}

.cert-modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

#certModalCaption {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 15px;
    font-size: 1.1rem;
}

.cert-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.cert-zoom i {
    color: var(--text-primary);
    font-size: 1.25rem;
}

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

.cert-card {
    cursor: pointer;
    position: relative;
}

.cert-image {
    position: relative;
}

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

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

/* ===== EXPANDABLE PROJECT CARD ===== */
.project-card-wide {
    grid-column: span 2;
}

.expandable-card {
    cursor: pointer;
}

.expandable-card .project-card-header {
    display: flex;
    gap: 20px;
}

.expandable-card .project-card-header .project-image {
    width: 200px;
    min-width: 200px;
    height: 180px;
}

.expandable-card .project-card-header .project-content {
    flex: 1;
    padding: 20px 20px 20px 0;
}

.expand-icon {
    font-size: 0.8em;
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.expandable-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.expand-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    animation: pulse-hint 2s ease-in-out infinite;
}

.expand-hint i {
    font-size: 1rem;
}

.expandable-card.expanded .expand-hint {
    display: none;
}

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

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: var(--bg-tertiary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.expandable-card.expanded .expandable-content {
    max-height: 800px;
    padding: 20px;
}

.sub-projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-project {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    transition: var(--transition-normal);
}

.sub-project:hover {
    transform: translateX(5px);
    background: rgba(99, 102, 241, 0.1);
}

.sub-project-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.sub-project-content {
    flex: 1;
}

.sub-project-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.sub-project-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.sub-project-content .project-tech {
    flex-wrap: wrap;
}

.sub-project-content .project-tech span {
    font-size: 0.7rem;
    padding: 4px 10px;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 992px) {
    .project-card-wide {
        grid-column: span 1;
    }
    
    .expandable-card .project-card-header {
        flex-direction: column;
    }
    
    .expandable-card .project-card-header .project-image {
        width: 100%;
        height: 150px;
    }
    
    .expandable-card .project-card-header .project-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .logo-icon {
        font-size: 1.25rem;
    }
    
    .logo-name {
        font-size: 1rem;
    }
    
    .cert-modal-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }
    
    .sub-project {
        flex-direction: column;
        gap: 15px;
    }
    
    .sub-project-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
    }
    
    .expandable-card.expanded .expandable-content {
        padding: 15px;
    }
}
