/* General Styles */
:root {
    --primary-color: #2563eb; /* New professional blue */
    --primary-dark: #1e40af; /* Darker blue */
    --primary-light: #60a5fa; /* Lighter blue */
    --secondary-color: #475569; /* Slate gray */
    --dark-color: #0f172a; /* Dark slate */
    --light-color: #f1f5f9; /* Light slate */
    --text-color: #334155; /* Dark slate gray */
    --background-color: #ffffff;
    --accent-color: #3b82f6; /* Blue accent */
    --accent-contrast: #f0f9ff; /* Light blue bg */
    --success-color: #10b981; /* Green */
    --box-shadow: 0 5px 15px rgba(15, 23, 42, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --section-padding: 100px 0;
    
    /* Dark mode variables */
    --dark-bg: #0f172a;
    --dark-text: #f1f5f9;
    --dark-card-bg: #1e293b;
    --dark-header-bg: #1e293b;
    --dark-border: #334155;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

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

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

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

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

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

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), #6e8cff, #4a63e7, #3951d1);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s ease infinite;
}

.dark-mode .section-header h2 {
    color: var(--dark-text);
}

.underline {
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
    position: relative;
}

.underline::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 10px;
    height: 3px;
    background-color: var(--primary-color);
}

.underline::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    width: 10px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    transition: width 0.3s ease, height 0.3s ease, border 0.3s ease;
}

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

.dark-mode .preloader {
    background-color: var(--dark-bg);
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(74, 99, 231, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding: 20px 0;
}

header.sticky {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.dark-mode header.sticky {
    background-color: var(--dark-header-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: white;
}

.menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: transform 0.3s ease;
}

.dark-mode .menu-btn span {
    background-color: var(--dark-text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 100px;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.dark-mode .hero {
    background-color: var(--dark-card-bg);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%232563eb" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
    z-index: -1;
    opacity: 0.7;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 99, 231, 0.05) 0%, rgba(74, 99, 231, 0.1) 100%);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    padding-right: 30px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.dark-mode .hero-text h1 {
    color: var(--dark-text);
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.dark-mode .hero-text h2 {
    color: var(--dark-text);
}

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

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 8px;
    background-color: rgba(37, 99, 235, 0.15);
    z-index: -1;
    animation: highlightPulse 3s infinite;
}

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

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.dark-mode .hero-text p {
    color: var(--dark-text);
}

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

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
    min-height: 400px;
}

.shape {
    position: absolute;
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(96, 165, 250, 0.15) 100%);
    border-radius: 62% 38% 46% 54% / 60% 63% 37% 40%;
    animation: morph 8s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.1);
    z-index: 0;
}

@keyframes morph {
    0% { border-radius: 62% 38% 46% 54% / 60% 63% 37% 40%; }
    25% { border-radius: 43% 57% 51% 49% / 44% 68% 32% 56%; }
    50% { border-radius: 49% 51% 42% 58% / 53% 40% 60% 47%; }
    75% { border-radius: 57% 43% 50% 50% / 40% 54% 46% 60%; }
    100% { border-radius: 62% 38% 46% 54% / 60% 63% 37% 40%; }
}

.profile-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    border: 5px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.dark-mode .profile-img {
    border: 5px solid rgba(255, 255, 255, 0.1);
}

.profile-img::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: inherit;
    border: 2px dashed var(--primary-light);
    animation: rotate 20s linear infinite;
    opacity: 0.5;
    z-index: -1;
}

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

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

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: -10px 0;
    animation: scrollDown 2s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDown {
    0% { opacity: 0; transform: rotate(45deg) translate(-15px, -15px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(15px, 15px); }
}

/* About Section */
.about {
    background-color: #fff;
}

.dark-mode .about {
    background-color: var(--dark-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.dark-mode .about-text h3 {
    color: var(--dark-text);
}

.about-text p {
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    padding-left: 16px;
    border-left: 3px solid var(--primary-color);
    transform: translateX(0);
    transition: all 0.5s ease;
}

.dark-mode .about-text p {
    color: var(--dark-text);
}

.about-text p:hover {
    transform: translateX(5px);
    border-left-width: 5px;
    background: linear-gradient(90deg, rgba(74, 99, 231, 0.05), transparent);
    padding: 15px 20px 15px 16px;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.detail i {
    font-size: 1.2rem;
    color: var(--primary-color);
    background-color: rgba(74, 99, 231, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.detail h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.dark-mode .detail h4 {
    color: var(--dark-text);
}

.detail p {
    margin: 0;
    color: var(--secondary-color);
}

.dark-mode .detail p {
    color: var(--dark-text);
}

/* Skills Section */
.skills {
    background-color: var(--accent-contrast);
    position: relative;
    overflow: hidden;
    z-index: 0;
    padding-top: 120px;
    margin-top: -20px;
}

.dark-mode .skills {
    background-color: var(--dark-card-bg);
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--accent-contrast) 100%);
    z-index: -1;
}

.dark-mode .skills::before {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0) 0%, var(--dark-card-bg) 100%);
}

.skills::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--accent-contrast) 9px, transparent 9px),
                      linear-gradient(90deg, var(--accent-contrast) 9px, transparent 9px);
    background-size: 40px 40px;
    background-color: transparent;
    opacity: 0.3;
    z-index: -1;
}

.dark-mode .skills::after {
    background-image: linear-gradient(var(--dark-card-bg) 9px, transparent 9px),
                      linear-gradient(90deg, var(--dark-card-bg) 9px, transparent 9px);
}

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

.skills-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.skills-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.dark-mode .skills-text h3 {
    color: var(--dark-text);
}

.skill-progress {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.dark-mode .skill-progress {
    background-color: var(--dark-border);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    width: 0;
    transition: width 1s ease-in-out;
    position: relative;
}

.progress-bar span {
    position: absolute;
    right: -10px;
    top: -25px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.skills-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.skill-category {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dark-mode .skill-category {
    background-color: var(--dark-card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    z-index: 1;
    transition: height 0.5s ease;
}

.skill-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 99, 231, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.dark-mode .skill-category::after {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 41, 59, 0) 60%);
}

.skill-category:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2);
}

.dark-mode .skill-category:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.skill-category:hover::before {
    height: 10px;
}

.skill-category:hover::after {
    opacity: 1;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    flex: 1;
    align-items: stretch;
}

.skill-item {
    text-align: center;
    width: calc(50% - 10px);
    transition: all 0.4s ease;
    padding: 15px 10px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 130px;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 80%);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-item:hover {
    transform: translateY(-8px) scale(1.05);
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-item i {
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.4s ease;
    display: inline-block;
}

.skill-item:hover i {
    transform: rotateY(180deg);
    color: var(--primary-dark);
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.skill-item h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.skill-progress {
    width: 100%;
    margin-top: auto;
    margin-bottom: 5px;
}

/* Statistics Section */
.statistics {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="white" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 0.2;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Projects Section */
.projects {
    background-color: #fff;
}

.dark-mode .projects {
    background-color: var(--dark-bg);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.dark-mode .filter-btn {
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
}

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

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

.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    background-color: #fff;
}

.dark-mode .project-card {
    background-color: var(--dark-card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-10px);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 99, 231, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-link, .project-github {
    width: 45px;
    height: 45px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.project-link:hover, .project-github:hover {
    transform: translateY(-5px);
}

.project-link i, .project-github i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.dark-mode .project-info h3 {
    color: var(--dark-text);
}

.project-info p {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.dark-mode .project-info p {
    color: var(--dark-text);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    background-color: rgba(74, 99, 231, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.dark-mode .project-tags span {
    background-color: rgba(37, 99, 235, 0.2);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--accent-contrast);
    position: relative;
    overflow: hidden;
}

.dark-mode .testimonials {
    background-color: var(--dark-card-bg);
}

.testimonials-content {
    position: relative;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
    gap: 30px;
}

.testimonial-card {
    min-width: 100%;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease;
}

.dark-mode .testimonial-card {
    background-color: var(--dark-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding: 0 20px;
}

.dark-mode .testimonial-content p {
    color: var(--dark-text);
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
}

.testimonial-content p::before {
    top: -20px;
    left: -10px;
}

.testimonial-content p::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.dark-mode .author-info h4 {
    color: var(--dark-text);
}

.author-info p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.dark-mode .author-info p {
    color: var(--dark-text);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Contact Section */
.contact {
    background-color: #f8f9fc;
}

.dark-mode .contact {
    background-color: var(--dark-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.dark-mode .contact-info h3 {
    color: var(--dark-text);
}

.contact-info p {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.dark-mode .contact-info p {
    color: var(--dark-text);
}

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

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

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    background-color: rgba(74, 99, 231, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.dark-mode .contact-item h4 {
    color: var(--dark-text);
}

.contact-item p {
    margin: 0;
    color: var(--secondary-color);
}

.dark-mode .contact-item p {
    color: var(--dark-text);
}

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

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(74, 99, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.social-link i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.dark-mode .contact-form {
    background-color: var(--dark-card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    outline: none;
    background-color: #f8f9fa;
    color: var(--text-color);
}

.dark-mode .form-group input, 
.dark-mode .form-group textarea {
    background-color: var(--dark-bg);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
}

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

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 40px 0;
}

.dark-mode footer {
    background-color: #0c1425;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(74, 99, 231, 0.5);
}

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

.back-to-top:hover {
    background-color: #3951d1;
    transform: translateY(-5px);
}

/* Tech Icons */
.tech-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
    animation: techFloat 6s ease-in-out infinite;
    z-index: 3;
    opacity: 0;
    transform: scale(0);
    animation: techAppear 0.5s ease forwards, techFloat 5s ease-in-out infinite;
    animation-delay: calc(var(--index) * 0.2s);
}

.tech-icon:nth-child(1) { --index: 1; }
.tech-icon:nth-child(2) { --index: 2; }
.tech-icon:nth-child(3) { --index: 3; }
.tech-icon:nth-child(4) { --index: 4; }
.tech-icon:nth-child(5) { --index: 5; }

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

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

@keyframes techFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(5px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Fix any overlap in layouts */
.skill-category {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skill-items {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Additional professional touches */
.section-header {
    position: relative;
    z-index: 2;
}

.section-header h2::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 50%;
    z-index: -1;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Text Animation Effects */
@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color), var(--primary-dark));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s ease infinite;
    display: inline-block;
}

/* Animated Border Effect */
.animated-border {
    position: relative;
}

.animated-border::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.5s ease;
}

.animated-border:hover::after {
    width: 100%;
}

/* Glowing effect for text */
.glow-on-hover {
    transition: text-shadow 0.3s ease;
}

.glow-on-hover:hover {
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    color: var(--primary-color);
}

/* Subtle scaling animation for paragraphs */
.scale-on-hover {
    transition: transform 0.3s ease;
}

.scale-on-hover:hover {
    transform: scale(1.02);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text h2 {
        font-size: 1.7rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .hero {
        padding: 130px 0 80px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
    
    .menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .dark-mode nav {
        background-color: var(--dark-header-bg);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .about-details {
        grid-template-columns: 1fr;
    }
    
    .skill-item {
        width: calc(50% - 10px);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .skills-cards {
        grid-template-columns: 1fr;
    }
}