/* Base Styles */
:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --primary-light: #7209b7;
    --secondary: #f72585;
    --background: #ffffff;
    --foreground: #333333;
    --card: #ffffff;
    --card-foreground: #333333;
    --muted: #f8f9fa;
    --muted-foreground: #6c757d;
    --border: #e9ecef;
    --input: #e9ecef;
    --radius: 0.5rem;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --section-padding: 3rem 0;
    --container-width: 1200px;
    --particle-color: rgba(67, 97, 238, 0.2);
    --particle-line-color: rgba(67, 97, 238, 0.1);
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
    --primary-rgb: 67, 97, 238;
    --primary-light-rgb: 114, 9, 183;
    --secondary-rgb: 247, 37, 133;
    --background-rgb: 255, 255, 255;
}

.dark {
    --primary: #4cc9f0;
    --primary-dark: #4361ee;
    --primary-light: #7209b7;
    --secondary: #f72585;
    --background: #121212;
    --foreground: #f8f9fa;
    --card: #1e1e1e;
    --card-foreground: #f8f9fa;
    --muted: #2d2d2d;
    --muted-foreground: #adb5bd;
    --border: #2d2d2d;
    --input: #2d2d2d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --particle-color: rgba(76, 201, 240, 0.2);
    --particle-line-color: rgba(76, 201, 240, 0.1);
    --gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
    --primary-rgb: 76, 201, 240;
    --primary-light-rgb: 114, 9, 183;
    --secondary-rgb: 247, 37, 133;
    --background-rgb: 18, 18, 18;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    position: relative;
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding);
}

.highlight {
    color: var(--primary);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader svg {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

#loader-circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: dash 2s ease-in-out infinite;
}

@keyframes dash {
    0% {
        stroke-dashoffset: 200;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -200;
    }
}

.loader-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.loader-text span {
    animation: dots 1.5s infinite;
    opacity: 0;
}

.loader-text span:nth-child(1) {
    animation-delay: 0s;
}

.loader-text span:nth-child(2) {
    animation-delay: 0.5s;
}

.loader-text span:nth-child(3) {
    animation-delay: 1s;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

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

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(var(--background-rgb), 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.logo-text {
    position: relative;
    display: inline-block;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.logo:hover .logo-text::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.menu {
    display: flex;
    gap: 2rem;
}

.menu-item {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
}

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

.menu-item:hover::after {
    width: 100%;
}

.theme-toggle {
    margin-left: 2rem;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    background-color: var(--muted);
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

.theme-toggle .fa-sun {
    display: none;
}

.dark .theme-toggle .fa-moon {
    display: none;
}

.dark .theme-toggle .fa-sun {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--foreground);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 600px;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: var(--primary);
    margin-left: 5px;
    animation: blink 1s infinite;
}

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

.hero p {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.hero-image {
    position: relative;
    width: 40%;
}

.app-mockup {
    position: relative;
}


.phone {
    /* width: clamp(240px, 30vw, 280px); */
    width: 280px;
    height: 440px;
    background-color: var(--card);
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    padding: 15px;
    position: relative;
    overflow: hidden;
    border: 8px solid var(--muted);
    margin-bottom: 4rem;
    /* margin-top: 2rem; */
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--background);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-ui {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    height: 60px;
    background: var(--gradient);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
  }
  

.app-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 10px; /* Space between icons */
    padding: 10px;
  }
  
  .app-item {
    display: flex;
    flex-direction: column; /* Stack image and label vertically */
    align-items: center;    /* Center them horizontally */
    justify-content: center;/* Center them vertically */
    /* Retain the square aspect ratio if needed */
    /* aspect-ratio: 1/1; */
  }
  
  .app-item img {
    width: 50%;       /* Reduced size from 80% */
    height: auto;
    object-fit: contain;
    border-radius: 10px; /* Adjust the value for desired curve */
  }
  .app-label {
    margin-top: 2px;
    text-align: center;
    font-size: 0.7rem !important;
    color: var(--foreground);
  }
  

  
  

.app-item:nth-child(2) {
    animation-delay: 0.3s;
}

.app-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes appItemLoad {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.app-nav {
    height: 60px;
    background-color: var(--card);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 15px;
    border-top: 1px solid var(--border);
}

.app-nav::before, .app-nav::after {
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--muted);
}

.app-nav::after {
    width: 60px;
    border-radius: 20px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    padding: 0 10px;
}

.section-subtitle::before, .section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background-color: var(--primary);
}

.section-subtitle::before {
    left: -30px;
}

.section-subtitle::after {
    right: -30px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.section-header h2 {
    margin-bottom: 0;
}

.section-divider {
    margin-top: 5px;
}


/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, rgba(var(--primary-rgb), 0.3), transparent);
    z-index: 1;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: var(--shadow);
    z-index: 2;
}

.exp-years {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    text-align: center;
    max-width: 80px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.info-item p {
    color: var(--muted-foreground);
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.1);
    z-index: -1;
}

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

/* Services Section */
.services {
    background-color: var(--muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient);
    opacity: 0.05;
    transition: height 0.5s ease;
    z-index: -1;
}

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

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: white;
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: var(--radius);
    z-index: 2;
}

.service-card:hover .service-hover {
    opacity: 0.98;
    transform: scale(1);
}

.service-hover-content {
    color: white;
    text-align: center;
    padding: 2rem;
}

.service-hover-content h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-hover-content ul {
    list-style: none;
    padding: 0;
}

.service-hover-content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-hover-content li::before {
    content: '→';
    position: absolute;
    left: 0;
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: none;
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--muted);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: white;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

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

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.project-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.project-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
}

.project-link {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.project-link:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.project-overlay-link {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
}

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

.project-overlay-link:hover {
    background-color: var(--primary);
    color: white;
}

.project-overlay-link:nth-child(2) {
    transition-delay: 0.1s;
}

/* App Showcase Section */
.app-showcase {
    background-color: var(--muted);
}

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

.showcase-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.showcase-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.showcase-text p {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.app-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

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

.app-store-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.app-store-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--primary);
    color: white;
}

.app-store-link i {
    font-size: 1.5rem;
}

.showcase-device {
    position: relative;
}

.phone-mockup {
    position: relative;
    width: 300px;
    margin: 0 auto;
}

.phone-frame {
    width: 100%;
    padding: 15px;
    background-color: var(--card);
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 8px solid var(--muted);
}

.phone-screen {
    width: 100%;
    height: 600px;
    background-color: var(--background);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-screens {
    width: 100%;
    height: 100%;
    position: relative;
}

.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.app-screen.active {
    opacity: 1;
}

.app-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screen-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.screen-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.screen-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Skills Section */
.skills-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--card);
    box-shadow: var(--shadow);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.tab-pane.active {
    display: block;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: center;
    padding: 2rem 0;
}

.skill-card {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--card), var(--muted));
    border-radius: var(--radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    overflow: hidden;
    perspective: 1000px;
}

.skill-card:hover {
    transform: translateY(-10px) rotateX(10deg) rotateY(10deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.1;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.skill-card:hover::before {
    opacity: 0.3;
}

.skill-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    margin-bottom: 0.7rem;
    transition: transform 0.5s ease, background-color 0.5s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.8); /* Changed to white type */

}

.skill-icon img {
    width: 40px;
    height: 40px;
}

.skill-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--foreground);
    transition: color 0.5s ease;
    text-align: center;
}

.skill-card:hover .skill-name {
    color: var(--primary);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.contact-info p {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background-color: var(--primary);
    color: white;
    transform: rotateY(360deg);
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--muted-foreground);
    margin-bottom: 0;
}

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

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--muted);
    border-radius: 50%;
    color: var(--foreground);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px);
}

/* Contact Form */
.card {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card-body {
    padding: 3rem;
}

.form-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: none;
    text-align: center;
}

.form-success i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dark .form-success {
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
}

.textarea-icon {
    top: 20px;
    transform: none;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.form-group textarea {
    resize: none;
}

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

.loading-spinner {
    display: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

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

/* Footer */
.footer {
    position: relative;
}

.footer-top {
    background-color: var(--card);
    padding: 5rem 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--muted-foreground);
    margin-bottom: 0;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--muted-foreground);
    transition: var(--transition);
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted-foreground);
}

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

.footer-bottom {
    background-color: var(--muted);
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--muted-foreground);
    margin: 0;
}

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

.footer-social a {
    color: var(--muted-foreground);
    transition: var(--transition);
}

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

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

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

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Animation Classes */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(30px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .about-content,
    .showcase-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-text h3::after,
    .showcase-text h3::after,
    .contact-info h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-text,
    .showcase-text,
    .contact-info {
        text-align: center;
    }
    
    .about-info {
        justify-content: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .image-container {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .phone-mockup {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--background);
        border-bottom: 1px solid var(--border);
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu-item {
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }
    
    .menu-item::after {
        display: none;
    }
    
    .hamburger {
        display: flex;
        margin-left: 1rem;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .card-body {
        padding: 2rem;
    }

    .hero .container {
        flex-direction: column;
        align-items: center; /* Center content horizontally */
        text-align: center; /* Ensure text is centered */
      }
    
      .hero-content,
      .hero-image {
        width: 100%; /* Allow both to stretch evenly */
        display: flex;
        flex-direction: column;
        align-items: center; /* Ensure internal content is centered */
        text-align: center;
      }
    
      h1, h2, p {
        text-align: center;
        margin: 0 auto; /* Center block-level elements */
      }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr); /* Two skills per row on mobile */
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .app-links {
        flex-direction: row; /* Change to row for mobile screens */
        justify-content: center; /* Center the buttons horizontally */
        gap: 0.5rem; /* Adjust spacing between buttons */
    }
    
    .app-links {
        flex-direction: row; /* Change to row for mobile screens */
        justify-content: center; /* Center the buttons horizontally */
        gap: 0.5rem; /* Adjust spacing between buttons */
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Dark Mode Specific Styles */
.dark #particle-canvas {
    background-color: #121212;
}

/* Popup Message */
.popup-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-message p {
    margin: 0;
    font-size: 0.9rem;
}

.popup-message.hidden {
    opacity: 0;
    visibility: hidden;
}

.popup-message:not(.hidden) {
    opacity: 1;
    visibility: visible;
}