/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, hsl(239, 84%, 67%), hsl(262, 83%, 58%));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1rem;
    opacity: 0.8;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, hsl(239, 84%, 67%), hsl(262, 83%, 58%));
    width: 0%;
    transition: width 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: hsl(var(--background));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: hsl(var(--foreground));
}

.theme-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, hsl(239, 84%, 67%), hsl(262, 83%, 58%));
    color: white;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top.visible {
    transform: translateY(0);
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(239, 84, 67, 0.4);
}

/* Floating Particles */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, hsl(239, 84%, 67%), hsl(262, 83%, 58%));
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    top: 70%;
    left: 80%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 60%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    top: 20%;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 5s;
}

.particle:nth-child(6) {
    top: 60%;
    left: 30%;
    animation-delay: 5s;
    animation-duration: 8s;
}

/* Dark Theme */
.dark-theme {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --primary: 262 83% 58%;
    --primary-foreground: 210 20% 98%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --ring: 262 83% 58%;

    /* Dark theme gradients */
    --gradient-primary: linear-gradient(135deg, hsl(262, 83%, 58%), hsl(231, 84%, 61%));
    --gradient-hero: linear-gradient(135deg, hsl(262, 83%, 58%), hsl(231, 84%, 61%));
    --gradient-secondary: linear-gradient(180deg, hsl(217.2, 32.6%, 17.5%), hsl(222.2, 84%, 4.9%));

    /* Dark theme shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(262, 83%, 58%, 0.3);
    --shadow-glow: 0 0 40px hsl(262, 83%, 70%, 0.4);
    --shadow-card: 0 4px 12px -4px hsl(217.2, 32.6%, 17.5%);
}

.dark-theme body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

.dark-theme .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid hsl(var(--border));
}

.dark-theme .theme-toggle {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

.dark-theme .back-to-top {
    background: linear-gradient(135deg, hsl(262, 83%, 58%), hsl(231, 84%, 61%));
}

.dark-theme .particle {
    opacity: 0.3;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
    }

    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Typing Animation */
.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: hsl(var(--primary));
}

.typing-subtitle {
    opacity: 0;
    animation: fadeInUp 1s ease 2s forwards;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Color Variables */
:root {
    --primary: 239 84% 67%;
    --primary-foreground: 0 0% 98%;
    --secondary: 210 40% 98%;
    --secondary-foreground: 222.2 84% 4.9%;
    --muted: 210 40% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96%;
    --accent-foreground: 222.2 84% 4.9%;
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --border: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(239, 84%, 67%), hsl(262, 83%, 58%));
    --gradient-hero: linear-gradient(135deg, hsl(239, 84%, 67%), hsl(262, 83%, 58%));
    --gradient-secondary: linear-gradient(180deg, hsl(210, 40%, 98%), hsl(220, 14%, 96%));

    /* Shadows */
    --shadow-elegant: 0 10px 30px -10px hsl(239, 84%, 67%, 0.3);
    --shadow-glow: 0 0 40px hsl(262, 83%, 58%, 0.4);
    --shadow-card: 0 4px 12px -4px hsl(220, 14%, 96%);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid hsl(var(--border));
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo .logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--primary));
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: hsl(var(--foreground));
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: hsl(var(--foreground));
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: .5rem;
}

.contact-item a{
    text-decoration: none;
}

.contact-item a:hover{
    font-weight: 500;
}

a.disabled, button.disabled{
  pointer-events: none;
  cursor: default;
}


.contact-item a:visited {
    color: unset;
}

.contact-icon {
    color: hsl(var(--primary));
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
}

.image-glow {
    position: absolute;
    inset: -1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(1rem);
}

.profile-image {
    position: relative;
    width: 20rem;
    height: 20rem;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-elegant);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.section-divider {
    width: 5rem;
    height: 0.25rem;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 0.125rem;
}

.section-description {
    color: hsl(var(--muted-foreground));
    max-width: 32rem;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    padding: 3rem 0;
    background: var(--gradient-secondary);
}

.about-content-wrapper {
    max-width: 4xl;
    margin: 0 auto;
}

.about-text-center {
    text-align: center;
    margin-bottom: 3rem;
}

.about-text {
    color: hsl(var(--muted-foreground));
    line-height: 1.8;
    font-size: 1.125rem;
    max-width: 48rem;
    margin: 0 auto;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.highlight-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: hsl(var(--secondary));
    border-radius: 50%;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1);
}

.highlight-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.highlight-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    gap: 2rem;
    max-width: 6xl;
    margin: 0 auto;
}

.service-card {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 2rem;
    transition: var(--transition-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.03;
}

.service-card:hover {
    box-shadow: var(--shadow-elegant);
    transform: translateY(-2px);
    border-color: hsl(var(--primary), 0.2);
}

.service-header {
    margin-bottom: 1.5rem;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, hsl(var(--primary), 0.1), hsl(var(--primary), 0.05));
    border: 2px solid hsl(var(--primary), 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary), 0.8));
    box-shadow: var(--shadow-glow);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.service-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.skill-tag {
    padding: 0.375rem 0.75rem;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Experience Section */
.experience-section {
    padding: 5rem 0;
    background: var(--gradient-secondary);
}

.experience-list {
    max-width: 4xl;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-card {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.experience-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.experience-card.current {
    border: 2px solid hsl(var(--primary), 0.2);
    box-shadow: var(--shadow-glow);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.experience-main {
    flex: 1;
}

.company-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.25rem;
}

.company-name i {
    color: hsl(var(--primary));
}

.current-badge {
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.position {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-top: 0.25rem;
}

.experience-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.period,
.location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.period i,
.location i {
    width: 1rem;
}

.experience-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Certifications Section */
.certifications-section {
    padding: 5rem 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2rem;
    max-width: 4xl;
    margin: 0 auto;
}

.certification-card {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 2rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.certification-card:hover {
    box-shadow: var(--shadow-elegant);
    transform: translateY(-2px);
}

.certification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.certification-main {
    flex: 1;
}

.certification-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.certification-title i {
    color: hsl(var(--primary));
}

.certification-issuer {
    color: hsl(var(--primary));
    font-weight: 600;
}

.certification-date {
    padding: 0.375rem 0.75rem;
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.credential-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.certification-description {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.certification-skills {
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.certification-skills h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-badge {
    padding: 0.25rem 0.75rem;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.certification-action {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Portfolio Section */
.portfolio-section {
    padding: 5rem 0;
    background: var(--gradient-secondary);
}

.portfolio-tabs {
    max-width: 6xl;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    background: hsl(var(--background));
    border-radius: 0.5rem;
    padding: 0.25rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid hsl(var(--border));
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: var(--transition-smooth);
    flex: 1;
    justify-content: center;
}

.tab-btn.active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

.project-card {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    box-shadow: 0 20px 40px -15px hsl(var(--primary) / 0.4);
    transform: translateY(-8px);
    border-color: hsl(var(--primary) / 0.3);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 20px 40px -15px hsl(var(--primary) / 0.6);
}

.project-image {
    aspect-ratio: 16/9;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-placeholder {
    font-size: 2.5rem;
    opacity: 0.5;
    color: hsl(var(--primary));
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 0.5rem;
}

.project-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.project-type {
    color: hsl(var(--primary));
}

.project-info {
    padding: 0 1.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.company-name {
    font-weight: 600;
}

.project-content {
    padding: 0.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.project-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.6;
    flex: 1;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: auto;
}

.tech-badge {
    padding: 0.25rem 0.75rem;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-buttons {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    border-color: hsl(var(--muted));
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 4xl;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

/* Enhanced Micro-interactions */
.btn {
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn>* {
    position: relative;
    z-index: 1;
}

/* Card hover enhancements */
.highlight-card,
.service-card,
.certification-card,
.project-card,
.contact-card,
.skill-category {
    transition: var(--transition-smooth);
}

.highlight-card:hover,
.service-card:hover,
.certification-card:hover,
.project-card:hover,
.contact-card:hover,
.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Navigation enhancements */
.nav-link.active {
    color: hsl(var(--primary));
}

.nav-link.active::after {
    width: 100%;
}

/* Mobile responsiveness for new features */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .testimonial-content {
        padding: 2rem;
    }

    .testimonials-controls {
        gap: 1rem;
    }
}

.contact-card:hover::before {
    opacity: 0.02;
}

.contact-card:hover {
    box-shadow: var(--shadow-elegant);
    transform: translateY(-4px);
    border-color: hsl(var(--primary), 0.2);
}

.contact-icon-bottom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, hsl(var(--primary), 0.1), hsl(var(--primary), 0.05));
    border: 2px solid hsl(var(--primary), 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: hsl(var(--primary));
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.contact-card:hover .contact-icon-bottom {
    transform: scale(1.15);
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary), 0.8));
    box-shadow: var(--shadow-glow);
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.contact-value {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.contact-value:hover {
    color: hsl(var(--primary));
}

.cta-card {
    background: linear-gradient(135deg, hsl(var(--secondary)), hsl(var(--background)));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 4xl;
    margin: 0 auto;
    box-shadow: var(--shadow-elegant);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.03;
    z-index: -1;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: hsl(var(--background));
    border: 2px solid hsl(var(--border));
    border-radius: 50%;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    text-decoration: none;
    font-size: 1.25rem;
}

.social-link:hover {
    box-shadow: var(--shadow-elegant);
    transform: scale(1.15);
    border-color: currentColor;
}

.social-link.linkedin {
    color: #0077b5;
}

.social-link.github {
    color: #333;
}

.social-link.twitter {
    color: #1da1f2;
}

/* Footer */
.footer {
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
}

.footer-text {
    color: hsl(var(--muted-foreground));
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    box-shadow: 0 2px 4px -1px hsl(var(--primary), 0.2);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

.btn-outline:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.hidden-portfolio-card{
    background: unset;
    border: unset;
}
.hidden-portfolio-card:hover{
    box-shadow: unset;
    transform: unset;
    border-color: unset;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .profile-image {
        width: 16rem;
        height: 16rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .highlight-card {
        padding: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .experience-meta {
        text-align: left;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}