/* ===============================================
   CSS VARIABLES & ROOT STYLES
   Professional White & Cyan Color Palette - Optimized
   =============================================== */
:root {
    --primary: #00bcd4;
    --primary-dark: #00acc1;
    --primary-light: #4dd0e1;
    --primary-lighter: #80deea;
    --secondary: #0097a7;
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.3);
    --bg-primary: #fff;
    --bg-secondary: #f8fdfe;
    --bg-tertiary: #e0f7fa;
    --bg-card: #fff;
    --bg-overlay: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    --border: rgba(0, 188, 212, 0.2);
    --border-strong: rgba(0, 188, 212, 0.4);
    --success: #10b981;
    --error: #ef4444;
    --header-height: 70px;
    --scroll-offset: 90px;
    --transition: 0.3s;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --shadow: 0 4px 20px rgba(0, 188, 212, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 188, 212, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.2);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    --gradient-hero: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--scroll-offset); }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
::selection { background: var(--primary-lighter); color: var(--text-primary); }

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-hero);
    will-change: transform;
    contain: strict;
}

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 3rem); }

/* Header & Navigation */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-smooth);
}

.site-header.scrolled { box-shadow: var(--shadow); }

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: transform var(--transition), filter var(--transition);
    text-decoration: none;
}

.logo:hover { transform: scale(1.05); filter: brightness(1.1); }

.nav { display: flex; list-style: none; gap: 2.5rem; margin: 0; }

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

/* Desktop Menu Toggle */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid var(--border);
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    color: var(--primary);
    position: relative;
    z-index: 1002;
    gap: 0.5rem;
}

.nav-toggle:hover { 
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.menu-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 20px;
    transition: all var(--transition);
}

.menu-line {
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.menu-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-5px);
    transition: all var(--transition);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.nav-toggle:hover .menu-text {
    opacity: 1;
    transform: translateX(0);
}

.nav-toggle .close-icon { display: none; transition: all var(--transition); }
.nav-toggle.active .menu-lines { display: none; }
.nav-toggle.active .menu-text { display: none; }
.nav-toggle.active .close-icon { display: block; }

/* Desktop Navigation - Hidden by default, fullscreen on toggle */
@media (min-width: 769px) {
    .nav {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        padding: 0;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.95);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        justify-content: center;
        align-items: center;
        z-index: 1001;
    }

    #main-nav,
    #main-nav li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .nav-link {
        font-size: 2.5rem;
        font-weight: 700;
        padding: 1rem 2rem;
        text-align: center;
        color: var(--text-secondary);
        letter-spacing: -0.5px;
        position: relative;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .nav-link::after {
        display: none;
    }

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

    .nav-link::before {
        content: '';
        position: absolute;
        left: -30px;
        top: 50%;
        transform: translateY(-50%) scale(0);
        width: 12px;
        height: 12px;
        background: var(--gradient);
        border-radius: 50%;
        transition: transform 0.3s ease;
    }

    .nav-link:hover::before, .nav-link.active::before {
        transform: translateY(-50%) scale(1);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-text {
    animation: heroFadeIn 1.2s ease-out;
}

/* Profile Photo with Glowing Cyan Border */
.profile-photo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: photoFadeIn 1s ease-out 0.1s both;
}

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

.profile-photo-border {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light));
    background-size: 200% 200%;
    animation: borderRotate 4s linear infinite;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.15), 0 0 16px rgba(0, 188, 212, 0.1);
}

.profile-photo-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent, rgba(0, 229, 255, 0.2), transparent);
    background-size: 200% 200%;
    animation: borderRotate 3s linear infinite reverse;
    z-index: -1;
    filter: blur(3px);
    opacity: 0.5;
}

.profile-photo-border::after {
    display: none;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes sparkleRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-primary);
    border: 2px solid var(--bg-primary);
}

/* Scroll Down Arrow */
.scroll-down-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.4);
    animation: bounceDown 2s ease-in-out infinite;
    transition: all var(--transition-smooth);
    z-index: 10;
}

.scroll-down-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 188, 212, 0.6);
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

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

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-primary);
    animation: titleSlideIn 1s ease-out 0.2s both;
}

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

.accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: accentFloat 4s ease-in-out infinite;
}

/* Professional Subtle Border with Refined Glow Effect for Roshni */
.accent.roshni-border-glow {
    position: relative;
    display: inline-block;
    padding: 0.05em 0.2em;
    border: 1.5px solid rgba(0, 188, 212, 0.6);
    border-radius: 6px;
    animation: accentFloat 4s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: subtitleFadeIn 1s ease-out 0.5s both;
}

.hero-subtitle a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.hero-subtitle a:hover {
    color: var(--accent);
}

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

.hero-buttons { 
    display: flex; 
    gap: 1.25rem; 
    justify-content: center; 
    flex-wrap: wrap;
    animation: buttonsFadeIn 1s ease-out 0.8s both;
}

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

/* Buttons with enhanced hover effects */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

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

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

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.35);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 188, 212, 0.5);
}

.btn-primary:active { transform: translateY(-2px) scale(1.01); }

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

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 188, 212, 0.4);
}

/* Sections */
.section { padding: 7rem 0; position: relative; }

.section-dark {
    background: var(--gradient-subtle);
    position: relative;
}

.section-dark::before,
.section-dark::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-dark::before { top: 0; }
.section-dark::after { bottom: 0; }

.section-title-wrapper { margin-bottom: 4rem; text-align: center; }

.section-title {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 1.25rem;
    text-transform: capitalize;
    line-height: 1.3;
    color: var(--text-primary);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(50% + 40px);
    transform: translateX(-50%);
    width: 12px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

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

.about-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.about-photo {
    flex-shrink: 0;
}

.about-photo-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.2);
    transition: all var(--transition-smooth);
}

.about-photo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
}

.about-text { font-size: 1rem; color: var(--text-secondary); flex: 1; }

.about-intro {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.about-text p { margin-bottom: 1rem; line-height: 1.7; }
.about-text p:last-of-type { margin-bottom: 1rem; }
.about-text strong { color: var(--primary); font-weight: 600; }
.about-text a { color: var(--primary); text-decoration: none; font-weight: 600; transition: all var(--transition); }
.about-text a:hover { color: var(--accent); text-decoration: underline; }

/* About Tags */
.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.about-tag:hover {
    background: var(--primary-lighter);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* About Section Social Icons */
.about-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.social-link-small {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.social-link-small:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.social-link-small svg {
    transition: all var(--transition-smooth);
}

.social-link-small:hover svg {
    color: #fff;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.skill-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 0;
}

.skill-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-light);
}

.skill-card:hover::before { transform: scaleX(1); }
.skill-card:hover::after { opacity: 0.05; }

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-smooth);
}

.skill-icon-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-smooth);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.skill-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.skill-card:hover .skill-icon { transform: scale(1.15) rotate(5deg); }
.skill-card:hover .skill-icon-img { transform: scale(1.1); }

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.skill-card p {
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Projects Section - Enhanced Compact */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 188, 212, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-light);
}

.project-image {
    width: 100%;
    height: 140px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 10px;
    background: var(--bg-tertiary);
}

.project-card:hover .project-thumbnail { 
    transform: scale(1.03);
}

.project-placeholder {
    font-size: 4.5rem;
    opacity: 0.6;
    transition: all var(--transition-smooth);
    position: relative;
    display: none;
    z-index: 2;
}

.project-placeholder.visible { display: flex; }
.project-thumbnail.hidden { display: none; }
.project-card:hover .project-placeholder { transform: scale(1.1); opacity: 0.8; }

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.4) 0%, rgba(0, 229, 255, 0.35) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    backdrop-filter: blur(2px);
}

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

.view-project {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
}

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

.view-project:hover {
    background: rgba(255, 255, 255, 0.2);
}

.project-content {
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.project-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.project-content h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-weight: 600;
    transition: color var(--transition);
}

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

.project-content p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
    font-size: 0.8rem;
}

.project-tags { display: flex; gap: 0.625rem; flex-wrap: wrap; }

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition);
}

.project-card:hover .tag {
    background: var(--primary-lighter);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* What I Can Do Section (Services) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
    text-align: center;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    color: #fff;
    transition: all var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
}

.contact-content:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Contact Info Cards */
.contact-info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-smooth);
}

.contact-info-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.15);
}

.contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
    transition: all var(--transition-smooth);
    animation: iconPulse 2s ease-in-out infinite;
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 229, 255, 0);
    }
}

.contact-info-text {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

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

.contact-form { display: flex; flex-direction: column; gap: 1.75rem; }
.form-group { position: relative; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.125rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-smooth);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-light); }

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.15);
    background: var(--bg-primary);
    transform: translateY(-2px);
}

.contact-form textarea { resize: vertical; min-height: 160px; }

.form-message {
    text-align: center;
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

/* Footer */
.site-footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.site-footer p {
    text-align: center;
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Footer Social Media Icons */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    border-radius: 50%;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: all var(--transition-smooth);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover svg {
    color: #fff;
    transform: scale(1.1);
}

/* Social Link Animations */
.social-link.instagram {
    animation: socialPulse 3s ease-in-out infinite;
}

.social-link.facebook {
    animation: socialPulse 3s ease-in-out infinite 0.4s;
}

.social-link.linkedin {
    animation: socialPulse 3s ease-in-out infinite 0.8s;
}

.social-link.github {
    animation: socialPulse 3s ease-in-out infinite 1.2s;
}

@keyframes socialPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 229, 255, 0);
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-smooth);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    transition: transform var(--transition);
}

.whatsapp-float:hover svg {
    transform: rotate(15deg) scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    background: var(--text-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all var(--transition);
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent var(--text-primary) transparent transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 56px;
    height: 56px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.4);
    transition: all var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top.visible { opacity: 1; visibility: visible; }

.scroll-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 188, 212, 0.55);
}

.scroll-to-top:active { transform: translateY(-4px) scale(1.05); }

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

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

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

/* Responsive Design */
@media (min-width: 1400px) {
    .container { max-width: 1400px; }
    .hero-title { font-size: 5.5rem; }
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .section { padding: 5rem 0; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

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

    /* Mobile menu toggle - hamburger style */
    .nav-toggle { 
        display: flex; 
        z-index: 1002; 
        position: relative;
        width: 44px;
        height: 44px;
        padding: 0.5rem;
    }
    
    .nav-toggle .menu-lines {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 22px;
        justify-content: center;
    }
    
    .nav-toggle .menu-line {
        width: 100%;
        height: 2px;
        background: var(--primary);
        border-radius: 2px;
        transition: all var(--transition);
    }
    
    .nav-toggle .menu-text { display: none; }
    .nav-toggle .close-icon { display: none; }
    
    .nav-toggle.active .menu-lines { display: none; }
    .nav-toggle.active .close-icon { display: block; }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        background: var(--bg-primary);
        padding: 8rem 2rem 2rem;
        gap: 0.5rem;
        transform: translateX(-100%);
        opacity: 1;
        visibility: visible;
        transition: transform var(--transition-smooth);
        justify-content: flex-start;
        align-items: center;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav.open { transform: translateX(0); }

    .nav-link {
        font-size: 1.35rem;
        padding: 1.25rem 2rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
        border-radius: var(--radius);
        font-weight: 600;
        color: var(--text-secondary);
    }
    
    .nav-link:hover, .nav-link.active {
        background: var(--bg-tertiary);
        color: var(--primary);
    }
    
    .nav-link::after { display: none; }
    .nav-link::before { display: none; }

    .hero { padding: 5rem 0 3rem; min-height: 100vh; min-height: 100dvh; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -1px; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 1rem; }
    .btn { width: 100%; max-width: 280px; padding: 1rem 1.75rem; }
    .profile-photo-border { width: 120px; height: 120px; }
    .scroll-down-arrow { bottom: 1.5rem; right: 1.5rem; width: 40px; height: 40px; }
    .section { padding: 4rem 0; }
    .section-title-wrapper { margin-bottom: 3rem; }
    .skills-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .project-image { height: 100px; }
    .project-overlay { height: 100px; }
    .project-content { padding: 0.75rem; }
    .project-content h3 { font-size: 0.9rem; }
    .project-content p { font-size: 0.7rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .project-category { font-size: 0.6rem; }
    .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .about-content, .contact-content { padding: 2rem; }
    .about-layout { flex-direction: column; text-align: center; }
    .about-photo { margin: 0 auto; }
    .skill-card { padding: 2rem; }
    .project-image { height: 110px; }
    .project-overlay { height: 110px; }
    .scroll-to-top { bottom: 1.5rem; right: 1.5rem; width: 50px; height: 50px; }
    
    /* Profile Photo Mobile */
    .profile-photo-border { width: 140px; height: 140px; }
    
    /* Scroll Down Arrow Mobile */
    .scroll-down-arrow { bottom: 1.5rem; right: 1.5rem; width: 45px; height: 45px; }
    
    /* Contact Info Cards Mobile */
    .contact-info-cards { flex-direction: column; align-items: center; }
    .contact-info-card { width: 100%; max-width: 300px; justify-content: center; }
    
    /* Social Links Mobile */
    .footer-social { gap: 1rem; }
    .social-link { width: 45px; height: 45px; }
    
    /* WhatsApp Mobile */
    .whatsapp-float { bottom: 1.5rem; left: 1.5rem; width: 55px; height: 55px; }
    .whatsapp-tooltip { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .nav-wrapper { padding: 1rem 0; }
    .logo { font-size: 1.5rem; }
    .hero { padding: 5rem 0 2.5rem; }
    .hero-title { font-size: 2rem; letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }
    .profile-photo-border { width: 100px; height: 100px; }
    .profile-photo-wrapper { margin-bottom: 1rem; }
    .scroll-down-arrow { bottom: 1rem; right: 1rem; width: 36px; height: 36px; }
    .scroll-down-arrow svg { width: 18px; height: 18px; }
    .section-title { font-size: 1.75rem; }
    .section-title::before { width: 40px; }
    .section-title::after { left: calc(50% + 30px); width: 10px; }
    .about-content, .contact-content { padding: 1.5rem; border-radius: var(--radius); }
    .skill-card { padding: 1.5rem; border-radius: var(--radius); }
    .project-card { border-radius: var(--radius); }
    .project-content { padding: 0.6rem; }
    .project-image { height: 90px; }
    .project-overlay { height: 90px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .project-content h3 { font-size: 0.85rem; margin-bottom: 0.2rem; }
    .project-content p { font-size: 0.65rem; line-height: 1.3; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .project-category { font-size: 0.55rem; margin-bottom: 0.2rem; }
    .about-tags { justify-content: center; }
    .about-tag { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
    .contact-form input, .contact-form textarea { padding: 1rem; }
    .btn { padding: 0.9rem 1.5rem; font-size: 0.9rem; }
    
    /* Contact Info Smaller */
    .contact-icon { width: 40px; height: 40px; }
    .contact-info-text { font-size: 0.85rem; }
    
    /* Social Smaller */
    .social-link { width: 42px; height: 42px; }
    .social-link svg { width: 20px; height: 20px; }
    
    /* WhatsApp Smaller */
    .whatsapp-float { bottom: 1rem; left: 1rem; width: 50px; height: 50px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
}

@media (max-width: 360px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    .skill-icon { font-size: 2.5rem; }
    .skill-card h3 { font-size: 1.25rem; }
}
