/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #2d3436;
    --secondary-color: #00a8ff;
    --accent-color: #ff7675;
    --text-color: #2d3436;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #00a8ff, #0097e6);
    --gradient-hover: linear-gradient(135deg, #0097e6, #00a8ff);
}

.dark-theme {
    --primary-color: #ffffff;
    --secondary-color: #00a8ff;
    --accent-color: #ff7675;
    --text-color: #ffffff;
    --bg-color: #2d3436;
    --card-bg: #34495e;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
    cursor: none;
    overflow-x: hidden;
}

main {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dark-theme header {
    background-color: rgba(45, 52, 54, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    position: relative;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-dot {
    position: absolute;
    right: -8px;
    bottom: 0;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-link i {
    font-size: 1.2rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    background-color: rgba(0, 168, 255, 0.1);
    transform: translateY(-2px);
}

.theme-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.theme-toggle:hover {
    background-color: var(--border-color);
    transform: rotate(180deg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    padding-top: 110px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    position: relative;
    font-weight: 700;
}

.hero-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.glitch {
    position: relative;
    animation: glitch 1s linear infinite;
}

@keyframes glitch {
    2%, 64% {
        transform: translate(2px, 0) skew(0deg);
    }
    4%, 60% {
        transform: translate(-2px, 0) skew(0deg);
    }
    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

.glitch:before,
.glitch:after {
    content: attr(data-text);
    position: absolute;
    left: 0;
}

.glitch:before {
    animation: glitchTop 1s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

@keyframes glitchTop {
    2%, 64% {
        transform: translate(2px, -2px);
    }
    4%, 60% {
        transform: translate(-2px, 2px);
    }
    62% {
        transform: translate(13px, -1px) skew(-13deg);
    }
}

.glitch:after {
    animation: glitchBottom 1.5s linear infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchBottom {
    2%, 64% {
        transform: translate(-2px, 0);
    }
    4%, 60% {
        transform: translate(-2px, 0);
    }
    62% {
        transform: translate(-22px, 5px) skew(21deg);
    }
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 2rem auto;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.5);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-wrap {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    min-height: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-hover);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button.secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.cta-button.secondary:hover {
    background: var(--secondary-color);
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

.arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.arrows span {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    animation: arrow 2s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

@keyframes arrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 4rem 0;
    background: var(--bg-color);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.about-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    min-height: 350px;
    position: relative;
}

.about-content::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.about-left {
    max-width: 100%;
    width: 100%;
    text-align: left;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    position: relative;
}

.about-intro, .about-description {
    color: var(--text-color);
    font-size: 1.15rem;
    line-height: 1.8;
    position: relative;
}

.about-intro {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: var(--shadow);
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.about-intro::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.about-description {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.05), rgba(51, 51, 51, 0.05));
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.expertise-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    align-items: stretch;
}

.expertise-list li {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.8rem;
    text-align: left;
    font-size: 1rem;
    color: var(--text-color);
    border-left: 5px solid var(--secondary-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.expertise-list li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    opacity: 0.1;
    border-radius: 0 16px 0 50px;
    transition: all 0.3s ease;
}

.expertise-list li:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-left-width: 8px;
}

.expertise-list li:hover::after {
    width: 80px;
    height: 80px;
    opacity: 0.15;
}

.expertise-list li::before {
    content: '';
    width: 3rem;
    height: 3rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.expertise-list li:nth-child(1)::before {
    content: '\f121';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-list li:nth-child(2)::before {
    content: '\f1eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-list li:nth-child(3)::before {
    content: '\f085';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-list li:nth-child(4)::before {
    content: '\f1e0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
    display: inline;
    margin-right: 0.3rem;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.3rem;
}

.education-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

.education-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    margin-left: 2rem;
}

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

.education-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: absolute;
    left: -3.5rem;
    top: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
}

.education-content {
    flex: 1;
}

.education-card .year {
    background: var(--gradient);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.education-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.education-card .institution {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-card .institution i {
    font-size: 0.9rem;
}

.education-card .description {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.education-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.education-highlights .highlight {
    background: rgba(0, 168, 255, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    padding: 3rem 0;
    background-color: var(--bg-color);
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.experience h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
}

.experience h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

.experience-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    margin-left: 2rem;
}

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

.experience-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: absolute;
    left: -3.5rem;
    top: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
}

.experience-content {
    flex: 1;
}

.experience-card .year {
    background: var(--gradient);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.experience-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.experience-card .institution {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-card .institution i {
    font-size: 0.9rem;
}

.experience-card .description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-skills .skill-tag {
    background: rgba(0, 168, 255, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 168, 255, 0.2);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 4rem 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 168, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 118, 117, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.projects h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

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

.projects h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100px; }
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.projects-grid .project-card {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.6s ease forwards;
}

.projects-grid .project-card:nth-child(1) { animation-delay: 0.1s; }
.projects-grid .project-card:nth-child(2) { animation-delay: 0.2s; }
.projects-grid .project-card:nth-child(3) { animation-delay: 0.3s; }
.projects-grid .project-card:nth-child(4) { animation-delay: 0.4s; }
.projects-grid .project-card:nth-child(5) { animation-delay: 0.5s; }
.projects-grid .project-card:nth-child(6) { animation-delay: 0.6s; }
.projects-grid .project-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 168, 255, 0.1), rgba(255, 118, 117, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 12px;
}

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.project-content p {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background: var(--gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-tech span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.project-tech span:hover::before {
    left: 100%;
}

.project-tech span:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
}

.project-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    background: transparent;
    color: var(--secondary-color);
    text-decoration: none;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.project-link:hover::before {
    left: 0;
}

.project-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.3);
}

/* ===== PROJECT IMAGE STYLES ===== */
.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
    filter: brightness(0.9);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.85), rgba(51, 51, 51, 0.85));
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

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

.project-overlay-content {
    text-align: center;
    color: white;
    transform: translateY(30px) scale(0.8);
    transition: all 0.4s ease;
}

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

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.project-category {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
    opacity: 0.9;
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 3rem 0;
    background-color: var(--bg-color);
}

.skills h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
}

.skills h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.skill-category h3 i {
    color: var(--secondary-color);
    font-size: 1.4rem;
    padding: 0.3rem;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 8px;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-item {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    border-radius: 10px 0 0 10px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.skill-item:hover::before {
    transform: scaleY(1);
}

.skill-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    background: var(--card-bg);
    border-color: var(--secondary-color);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.skill-info span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.skill-info .percent {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

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

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 6px 6px 0;
}

/* ===== SOFT SKILLS GRID ===== */
.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.soft-skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.2rem;
    background: var(--bg-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.soft-skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.soft-skill-item:hover::before {
    opacity: 0.1;
}

.soft-skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: var(--card-bg);
    border-color: var(--secondary-color);
}

.soft-skill-item i {
    font-size: 1.6rem;
    color: var(--secondary-color);
    padding: 0.8rem;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.soft-skill-item:hover i {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.soft-skill-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.soft-skill-item:hover span {
    color: var(--primary-color);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 3rem 0;
    margin: 2rem 0;
    background-color: var(--bg-color);
    display: block;
    visibility: visible;
    position: relative;
    z-index: 1;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 50%;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-color);
}

.contact-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.contact-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-social a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.contact-form {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--card-bg);
    padding: 0 0.4rem;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    left: 0.4rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

.form-group .border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .border,
.form-group textarea:focus ~ .border {
    width: 100%;
}

.submit-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: var(--gradient-hover);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i {
    transition: all 0.3s ease;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow);
        z-index: 1000;
        justify-content: flex-start;
        gap: 2rem;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links .nav-link {
        display: flex;
        align-items: center;
        padding: 1rem;
        font-size: 1.2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-links .nav-link:hover {
        background: var(--border-color);
        transform: translateX(10px);
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-left {
        order: 1;
    }

    .about-right {
        order: 2;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Education tablet styles */
    .education-card {
        margin-left: 1rem;
    }

    .education-icon {
        left: -2.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Experience tablet styles */
    .experience-card {
        margin-left: 1rem;
    }

    .experience-icon {
        left: -2.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 0 1rem;
    }

    .about-content {
        gap: 1.5rem;
    }

    .expertise-list li {
        padding: 0.6rem;
    }

    /* Education mobile styles */
    .education-timeline::before {
        display: none;
    }

    .education-card {
        padding: 1.2rem;
        margin-left: 0;
        flex-direction: column;
        gap: 1rem;
        border-left: 3px solid var(--secondary-color);
    }

    .education-icon {
        position: relative;
        left: auto;
        top: auto;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        align-self: flex-start;
    }

    .education-highlights {
        justify-content: flex-start;
    }

    .education-highlights .highlight {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    /* Experience mobile styles */
    .experience-timeline::before {
        display: none;
    }

    .experience-card {
        padding: 1.2rem;
        margin-left: 0;
        flex-direction: column;
        gap: 1rem;
        border-left: 3px solid var(--secondary-color);
    }

    .experience-icon {
        position: relative;
        left: auto;
        top: auto;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        align-self: flex-start;
    }

    .experience-skills {
        justify-content: flex-start;
    }

    .experience-skills .skill-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .project-content {
        padding: 1.2rem;
    }

    .skill-category {
        padding: 1.2rem;
    }

    .contact-form {
        padding: 1.2rem;
        margin: 1rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        min-height: 48px; /* Better touch target */
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        margin: 0 auto;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 250px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-hover);
}

/* ===== NOTIFICATION STYLES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: var(--shadow-hover);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: linear-gradient(135deg, #00b894, #00a085);
}

.notification-error {
    background: linear-gradient(135deg, #e17055, #d63031);
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: var(--secondary-color);
    color: white;
}

::-moz-selection {
    background: var(--secondary-color);
    color: white;
} 
