/* Base Styles */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #2e3856;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #4a6cf7 0%, #2e3856 100%);
    --shadow-primary: 0 10px 20px rgba(74, 108, 247, 0.2);
    --shadow-hover: 0 15px 30px rgba(74, 108, 247, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #2d3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: #3498db;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

ul {
    list-style: none;
}

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

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--primary-color);
    font-size: 32px;
}

nav ul {
    display: flex;
}

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

nav ul li a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
    color: var(--secondary-color);
    text-decoration: none;
}

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

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

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

/* Header scroll state */
#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.05) 0%, rgba(74, 108, 247, 0.1) 100%);
    z-index: 0;
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    filter: blur(50px);
}

.hero-bg::before {
    top: -100px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.hero-bg::after {
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    animation: float 12s ease-in-out infinite reverse;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.hero-greeting {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-text h2 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.hero-text h2 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-text h2 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: rgba(74, 108, 247, 0.2);
    bottom: 5px;
    left: 0;
    z-index: -1;
}

.hero-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-light);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

.tech-badge i {
    margin-right: 5px;
    font-size: 16px;
}

/* Section Common Styles */
section {
    padding: 100px 0;
}

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

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

.section-title {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
#about {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

#about::before,
#about::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    filter: blur(40px);
    z-index: 0;
}

#about::before {
    top: 10%;
    left: -100px;
    animation: float 15s ease-in-out infinite;
}

#about::after {
    bottom: 10%;
    right: -100px;
    animation: float 12s ease-in-out infinite reverse;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.about-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-img-wrapper {
    position: relative;
    width: 350px;
    height: 400px;
    transition: all 0.5s ease;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100px;
    height: 100px;
    border-top: 4px solid var(--primary-color);
    border-left: 4px solid var(--primary-color);
    opacity: 0.5;
    z-index: -1;
    animation: pulse 3s infinite;
}

.about-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    border-bottom: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
    opacity: 0.5;
    z-index: -1;
    animation: pulse 3s infinite 1.5s;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
    transition: all 0.5s ease;
}

.about-img-wrapper:hover .about-image {
    transform: scale(1.02) translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: #fff;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(74, 108, 247, 0.3);
    border: 5px solid #fff;
}

.experience-badge .years {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

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

.about-card {
    background-color: #f8f9fa;
    padding: 30px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    color: white;
}

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

.about-card i {
    font-size: 32px;
    color: var(--primary-color);
}

/* Core Strengths Section */
#core-strengths {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.core-strengths-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.core-strengths-content:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.strengths-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.strengths-list li {
    position: relative;
    padding: 15px 0 15px 35px;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    border-bottom: 1px solid #f0f0f0;
}

.strengths-list li:last-child {
    border-bottom: none;
}

.strengths-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
     font-size: 1.2rem;
}

.about-card i {
     margin-bottom: 20px;
     transition: all 0.5s ease;
    display: inline-block;
}

.about-card:hover i {
    color: white;
    transform: scale(1.2);
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--secondary-color);
    transition: all 0.5s ease;
}

.about-card:hover h3 {
    color: white;
}

.about-card p {
    font-size: 15px;
    color: var(--text-light);
    transition: all 0.5s ease;
}

.about-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Experience Section */
#experience {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

#experience::before,
#experience::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    filter: blur(50px);
    z-index: 0;
}

#experience::before {
    top: 20%;
    right: -100px;
    animation: float 18s ease-in-out infinite;
}

#experience::after {
    bottom: 10%;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover::after {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    position: relative;
    padding: 35px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    border-left: 4px solid transparent;
    overflow: hidden;
    max-width: 95%;
    margin: 0 auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.05) 0%, rgba(74, 108, 247, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-left: 4px solid var(--primary-color);
}

.timeline-item:hover .timeline-content::before {
    opacity: 1;
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-date {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content ul {
    margin-top: 15px;
}

.timeline-content ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.timeline-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Skills Section */
#skills {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

#skills::before,
#skills::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    filter: blur(50px);
    z-index: 0;
}

#skills::before {
    width: 300px;
    height: 300px;
    top: -150px;
    left: 10%;
    animation: float 20s ease-in-out infinite;
}

#skills::after {
    width: 250px;
    height: 250px;
    bottom: -100px;
    right: 10%;
    animation: float 15s ease-in-out infinite reverse;
}

.skills-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.skill-category {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    z-index: -1;
    transition: all 0.5s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.skill-category:hover::before {
    transform: scale(5);
    opacity: 0.05;
}

.skill-category h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    position: relative;
}

.skill-category h3::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(74, 108, 247, 0.1);
    border-radius: 50%;
    left: -15px;
    top: -15px;
    z-index: -1;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.skill-item {
    background-color: #f1f2f6;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.skill-item:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-primary);
}

.skill-item:hover::before {
    transform: translateX(0);
}

/* Contact Section */
#contact {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

#contact form {
    width: 100%;
    max-width: 600px;
}

#contact::before,
#contact::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    filter: blur(40px);
    z-index: 0;
}

#contact::before {
    width: 350px;
    height: 350px;
    top: -100px;
    right: -150px;
    animation: float 18s ease-in-out infinite;
}

#contact::after {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow-primary);
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
    border: 1px solid rgba(74, 108, 247, 0.1);
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-info {
    margin-bottom: 20px;
    padding: 25px;
    background-color: rgba(74, 108, 247, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.contact-info p i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.95rem !important;
    font-style: italic;
    opacity: 0.8;
    margin-top: 10px;
}

.contact-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    border-top: 3px solid var(--primary-color);
    border-left: 3px solid var(--primary-color);
    opacity: 0.5;
    z-index: -1;
}

.contact-content::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    border-bottom: 3px solid var(--primary-color);
    border-right: 3px solid var(--primary-color);
    opacity: 0.5;
    z-index: -1;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-color);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #d0d7de;
    background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.15);
    background-color: #fff;
    transform: translateY(-2px);
}

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

.form-group button, .submit-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    z-index: 1;
}

.form-group button::before, .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    transform: scale(1.1) translateX(-10%);
}

.form-group button:hover, .submit-btn:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.form-group button:hover::before, .submit-btn:hover::before {
    opacity: 0.8;
    transform: scale(1) translateX(0);
}

.form-group button:active, .submit-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(74, 108, 247, 0.3);
}

.submit-btn {
    display: inline-block;
    width: auto;
}

.form-message {
    padding: 18px;
    border-radius: 12px;
    margin-top: 25px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.form-message.success {
    background-color: #e6f7ed;
    color: #0d6832;
    border: 1px solid #c3e6cb;
}

.form-message.success::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
}

.form-message.error {
    background-color: #fdf0f2;
    color: #a51c30;
    border: 1px solid #f5c6cb;
}

.form-message.error::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
}

.form-message.info {
    background-color: rgba(0, 123, 255, 0.1);
    color: #0077cc;
    border-left: 3px solid #0077cc;
}

.form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.form-message.info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(to bottom, #3498db, #2980b9);
}

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

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before,
footer::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    filter: blur(40px);
    z-index: 0;
}

footer::before {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -150px;
    animation: float 20s ease-in-out infinite;
}

footer::after {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-logo, .footer-links, .footer-contact {
    transition: all 0.3s ease;
}

.footer-logo:hover, .footer-links:hover, .footer-contact:hover {
    transform: translateY(-5px);
}

.footer-logo h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.footer-links ul li:hover {
    transform: translateX(5px);
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    opacity: 0;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links ul li a:hover::before {
    width: 100%;
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    margin-bottom: 30px;
    text-align: center;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    margin: 0 10px;
    border-radius: 50%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0);
    border-radius: 50%;
}

.social-links a:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 15px rgba(74, 108, 247, 0.3);
}

.social-links a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.social-links a:active {
    transform: translateY(-2px) scale(1.05);
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.copyright::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
}

footer:hover .copyright::before {
    width: 100px;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes float-rotate {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 108, 247, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(74, 108, 247, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 108, 247, 0); }
}

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

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-10px); }
}

/* Responsive Styles */
/* Menu Toggle Button Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary-color);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary-color);
}

/* Tablet Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-text {
        max-width: 100%;
        margin-top: 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-img, .about-text {
        flex: none;
        width: 100%;
    }
    
    .about-img-wrapper {
        margin: 0 auto 60px;
    }
    
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 20px !important;
        top: 15px;
    }
    
    .skills-content {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .hero-tech-stack {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 42px;
    }
    
    .hero-text h3 {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 60px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px;
    }
    
    nav ul li {
        margin: 15px 0;
        text-align: center;
    }
    
    nav ul li a {
        font-size: 18px;
        padding: 10px;
        display: block;
    }
    
    nav ul li a::after {
        bottom: 5px;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info {
        text-align: center;
        padding: 20px;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .skills-content {
        flex-direction: column;
    }
    
    .skill-category {
        margin-bottom: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .hero-text h2 {
        font-size: 32px;
    }
    
    .hero-text h3 {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .about-img-wrapper {
        width: 250px;
        height: 290px;
    }
    
    .experience-badge {
        width: 90px;
        height: 90px;
        right: -15px;
        bottom: 30px;
        font-size: 90%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .contact-content {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .form-group button, .submit-btn {
        padding: 14px 25px;
        width: 100%;
    }
    
    .tech-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links, .footer-contact {
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-links {
        margin-top: 20px;
    }
    
    .timeline-content h3 {
        font-size: 18px;
    }
    
    .timeline-content h4 {
        font-size: 16px;
    }
    
    .timeline-content p, .timeline-content li {
        font-size: 14px;
    }
}

.image-container {
    width: 350px;
    height: 350px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-primary);
    margin: 0 auto;
    position: relative;
    transition: all 0.5s ease;
    animation: float-rotate 6s ease-in-out infinite;
    max-width: 100%;
}

.image-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 2px dashed var(--primary-color);
    opacity: 0.3;
    animation: float-rotate 8s ease-in-out infinite reverse;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.image-container:hover {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    box-shadow: var(--shadow-hover);
}

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

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.float {
    animation: float 6s ease-in-out infinite;
}

.float-rotate {
    animation: float-rotate 8s ease-in-out infinite;
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

.bounce {
    animation: bounce 2s ease infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-text h2 {
        font-size: 28px;
    }
    
    .hero-text h3 {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .image-container {
        width: 220px;
        height: 220px;
    }
    
    .about-img-wrapper {
        width: 220px;
        height: 260px;
    }
    
    .experience-badge {
        width: 80px;
        height: 80px;
        font-size: 80%;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .skill-item {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .timeline-content h3 {
        font-size: 16px;
    }
    
    .timeline-content h4 {
        font-size: 14px;
    }
    
    .timeline-content p, .timeline-content li {
        font-size: 13px;
    }
    
    .footer-logo h2 {
        font-size: 24px;
    }
    
    .footer-links h3, .footer-contact h3 {
        font-size: 16px;
    }
    
    .footer-links li, .footer-contact p {
        font-size: 14px;
    }
    
    .copyright {
        font-size: 12px;
    }
}

/* Fix for mobile navigation overlay */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}