/* ========================
   Global Styles & Variables
   ======================== */

:root {
    --primary-color: #38BDF8;
    --secondary-color: #8B5CF6;
    --accent-color: #EC4899;
    --bg-dark: #0F172A;
    --bg-darker: #020617;
    --text-light: #E2E8F0;
    --text-muted: #94A3B8;
    --border-color: #1E293B;
    
    --transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    --gradient-primary: linear-gradient(135deg, #38BDF8, #8B5CF6, #EC4899);
}

/* Dark Theme */
body.dark-mode {
    --bg-dark: #0F172A;
    --bg-darker: #020617;
    --text-light: #E2E8F0;
    --text-muted: #94A3B8;
}

/* Light Theme */
body.light-mode {
    --primary-color: #0EA5E9;
    --secondary-color: #7C3AED;
    --accent-color: #DB2777;
    --bg-dark: #F8FAFC;
    --bg-darker: #F1F5F9;
    --text-light: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
}

/* ========================
   Reset & Base Styles
   ======================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    transition: var(--transition);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================
   Typography
   ======================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

h1 {
    font-size: 4rem;
    text-transform: capitalize;
    letter-spacing: -0.02em;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 2.8rem;
    letter-spacing: -0.01em;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.005em;
    font-weight: 700;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* ========================
   Animations
   ======================== */

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(56, 189, 248, 0.8), 0 0 60px rgba(139, 85, 246, 0.6);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes shimmerText {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes profileFloat {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    25% {
        transform: translateY(-15px) rotateZ(1deg);
    }
    75% {
        transform: translateY(-10px) rotateZ(-1deg);
    }
}

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

@keyframes shine {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ========================
   Common Components
   ======================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.3), 0 0 20px rgba(139, 85, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

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

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(56, 189, 248, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

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

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

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* Utility Classes */
.accent {
    color: var(--accent-color);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================
   Navbar
   ======================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(20deg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================
   Hero Section
   ======================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 1) 0%, rgba(2, 6, 23, 0.9) 50%, rgba(15, 23, 42, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 85, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    margin-bottom: 30px;
    line-height: 1;
    animation: slideInDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.typing-text {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.8;
    letter-spacing: 0.3px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.hero-animation {
    perspective: 1000px;
    animation: float 3s ease-in-out infinite;
}

.floating-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(139, 85, 246, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    animation: glow 2s ease-in-out infinite;
}

.card-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card-content p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ========================
   Section Styles
   ======================== */

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    margin-bottom: 25px;
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ========================
   About Section
   ======================== */

.about {
    background: linear-gradient(135deg, rgba(15, 23, 42, 1) 0%, rgba(2, 6, 23, 0.8) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-image-container {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(56, 189, 248, 0.3), 0 0 80px rgba(139, 85, 246, 0.2);
    border: 2px solid rgba(56, 189, 248, 0.3);
    animation: profileFloat 6s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-image-container:hover .profile-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 85, 246, 0.1));
    mix-blend-mode: overlay;
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(135deg, #38BDF8, #8B5CF6);
    padding: 15px 25px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.3);
    animation: float 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 35px;
    line-height: 1.9;
    font-size: 1.05rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.highlight-item {
    padding: 30px;
    background: rgba(56, 189, 248, 0.08);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.highlight-item:hover {
    background: rgba(56, 189, 248, 0.15);
    transform: translateY(-8px) translateX(5px);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15);
}

.highlight-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.highlight-item h4 {
    margin-bottom: 5px;
    color: var(--text-light);
}

.highlight-item p {
    font-size: 0.9rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(139, 85, 246, 0.1);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat:hover {
    background: rgba(139, 85, 246, 0.2);
    transform: translateY(-5px);
}

.stat h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* ========================
   Skills Section
   ======================== */

.skills {
    background: linear-gradient(135deg, rgba(2, 6, 23, 1) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.skill-category {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(139, 85, 246, 0.05));
    padding: 35px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(139, 85, 246, 0.1));
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.2);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 1.3rem;
}

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

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-item {
    margin-bottom: 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 600;
    color: var(--text-light);
}

.skill-level {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(56, 189, 248, 0.15);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38BDF8, #8B5CF6);
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.skill-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(139, 85, 246, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.skill-icon:hover {
    background: rgba(139, 85, 246, 0.2);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

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

.skill-icon span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ========================
   Projects Section
   ======================== */

.projects {
    background: linear-gradient(135deg, rgba(15, 23, 42, 1) 0%, rgba(2, 6, 23, 0.8) 100%);
}

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

.project-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(139, 85, 246, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(56, 189, 248, 0.25), 0 0 40px rgba(139, 85, 246, 0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(139, 85, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-placeholder {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.project-content p {
    flex-grow: 1;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(56, 189, 248, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================
   Education Section
   ======================== */

.education {
    background: linear-gradient(135deg, rgba(2, 6, 23, 1) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
}

.timeline-item {
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.timeline-item:nth-child(even) {
    direction: rtl;
}

.timeline-item:nth-child(even) .timeline-content {
    direction: ltr;
}

.timeline-marker {
    position: relative;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    position: relative;
    z-index: 10;
}

.timeline-content {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(139, 85, 246, 0.05));
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.timeline-content:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(139, 85, 246, 0.08));
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(56, 189, 248, 0.2);
}

.timeline-header {
    margin-bottom: 15px;
}

.timeline-header h3 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin-top: 15px;
}

/* ========================
   Contact Section
   ======================== */

.contact {
    background: linear-gradient(135deg, rgba(15, 23, 42, 1) 0%, rgba(2, 6, 23, 0.8) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    padding: 15px 18px;
    background: rgba(56, 189, 248, 0.05);
    border: 2px solid rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(56, 189, 248, 0.15);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.25), inset 0 0 10px rgba(56, 189, 248, 0.1);
    transform: scale(1.01);
}

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

.form-error {
    color: #FF6B6B;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

.form-message {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

.form-message.success {
    color: #10B981;
}

.form-message.error {
    color: #FF6B6B;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding: 30px;
    background: rgba(56, 189, 248, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    background: rgba(56, 189, 248, 0.12);
    transform: translateX(10px) translateY(-5px);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(139, 85, 246, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-details a {
    font-size: 0.95rem;
    word-break: break-all;
}

.social-links {
    padding: 20px;
    background: rgba(139, 85, 246, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.social-links h4 {
    margin-bottom: 15px;
    color: var(--text-light);
}

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

.social-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(139, 85, 246, 0.1));
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    transform: translateY(-8px) scale(1.1) rotate(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.3);
}

/* ========================
   Footer
   ======================== */

.footer {
    background: linear-gradient(135deg, rgba(2, 6, 23, 1) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

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

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.heart {
    color: var(--accent-color);
}

/* ========================
   Scroll to Top
   ======================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.scroll-top.show {
    display: flex;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.5);
}

/* ========================
   Responsive Design
   ======================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-highlights,
    .about-stats {
        grid-template-columns: 1fr;
    }

    .image-wrapper {
        width: 280px;
        height: 280px;
    }

    .floating-badge {
        bottom: -10px;
        right: -10px;
        padding: 12px 20px;
        font-size: 0.8rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }

    .timeline-item:nth-child(even) {
        direction: ltr;
    }

    .timeline-marker {
        justify-content: flex-start;
        margin-left: 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 70px 0;
    }

    .section-title {
        margin-bottom: 60px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding-top: 70px;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .section-title {
        margin-bottom: 50px;
    }

    .about-content,
    .skills-grid,
    .projects-grid {
        gap: 30px;
    }

    .skill-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-icons {
        flex-wrap: wrap;
    }

    .contact-item {
        padding: 20px;
    }

    .timeline-content {
        padding: 25px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 12px 15px;
    }
}
