/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
    /* Light Theme (Default) */
    --primary-color: #4a63e7;
    --secondary-color: #6c757d;
    --accent-color: #ff6b6b;
    --background-color: #f8f9fa;
    --dark-color: #343a40;
    --light-color: #ffffff;
    --text-color: #212529;
    --text-color-light: #6c757d;
    --border-color: #dee2e6;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

/* Apply dark mode transition to body */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* General transition class */
.theme-transition * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Clean light theme styling */
body {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Improved navbar styling - clean and readable */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: var(--light-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .logo a {
    color: #343a40;
    font-weight: 700;
}

.navbar .nav-link {
    color: var(--dark-color);
    font-weight: 500;
}

.navbar.scrolled .logo a {
    color: #343a40;
}

.navbar.scrolled .nav-link {
    color: var(--dark-color);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ff6b6b;
}

.navbar .bar {
    background-color: var(--dark-color);
}

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

.card,
.project-card,
.timeline-content,
.skill-card,
.skill-category-card,
.contact-info-card {
    background-color: #ffffff;
    color: var(--text-color);
    border-color: var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

/* Clean skill card styling */
.skill-category-header h4 {
    color: var(--dark-color);
}

.skill-name {
    color: var(--dark-color);
}

.skill-category-header {
    border-bottom-color: rgba(74, 99, 231, 0.2);
}

.skill-item {
    background: linear-gradient(135deg, rgba(74, 99, 231, 0.05), rgba(255, 107, 107, 0.05));
    border: 1px solid rgba(74, 99, 231, 0.2);
}

.skill-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(74, 99, 231, 0.15);
}



/* Clean section headers */
.section-header h2 {
    color: var(--dark-color);
}

/* Clean card styling - improved readability */
.card,
.project-card,
.timeline-content,
.skill-card,
.skill-category-card,
.contact-info-card {
    background-color: var(--light-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Clean form styling */
.contact-form input,
.contact-form textarea {
    background-color: var(--light-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 99, 231, 0.2);
}

/* Clean section backgrounds */
.about,
.projects,
.contact {
    background-color: var(--light-color);
}

.skills,
.experience,
.education {
    background-color: #f8f9fa;
}



/* Clean mobile hero section */
@media (max-width: 768px) {
  .hero {
    padding-top: 120px;
    min-height: 100vh;
  }
  
  .about {
    margin-top: 0;
    padding-top: 100px;
  }
}



.hero-content h1 {
    color: var(--light-color) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    word-break: break-word;
}

.hero-content p {
    color: #ffffff;
}

.typed-cursor {
    color: var(--accent-color);
}

/* Clean text contrast styling */
.timeline-content h3,
.project-content h3,
.about-text h3,
.skills-text h3 {
    color: var(--primary-color);
}

.timeline-content h4,
.project-content h4,
.info-title {
    color: var(--dark-color);
    font-weight: 600;
}

.tag {
    background-color: rgba(74, 99, 231, 0.1);
    color: var(--primary-color);
}

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

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

/* Clean footer styling */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
}

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

html {
    scroll-behavior: smooth;
    /* Prevent horizontal scroll */
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    /* Ensure body takes full width properly */
    width: 100%;
    max-width: 100vw;
}

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

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

ul {
    list-style: none;
}

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

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

/* Ensure sections don't hide under fixed navbar */
section:not(.hero) {
    scroll-margin-top: 80px; /* Account for fixed navbar height */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    /* Prevent container from overflowing */
    box-sizing: border-box;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

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

.underline::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background-color: var(--accent-color);
    top: 0;
    left: 0;
    animation: slide 2s infinite;
}

@keyframes slide {
    0% {
        left: 0;
    }
    50% {
        left: 40px;
    }
    100% {
        left: 0;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 5px 15px rgba(74, 99, 231, 0.4);
}

.primary-btn:hover {
    background-color: #3951d1;
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 99, 231, 0.5);
}

.secondary-btn {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.secondary-btn:hover {
    background-color: #ffffff;
    color: #343a40;
    transform: translateY(-3px);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
    min-height: 60px; /* Ensure a minimum height for the navbar */
}

.navbar.scrolled {
    background-color: var(--light-color);
    padding: 15px 5%;
    box-shadow: var(--box-shadow);
    min-height: 60px; /* Maintain minimum height when scrolled */
}

.navbar.scrolled {
    background-color: var(--light-color);
    padding: 15px 5%;
    box-shadow: var(--box-shadow);
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    color: var(--light-color);
    font-family: var(--font-secondary);
}

.navbar.scrolled .logo a {
    color: var(--primary-color);
}

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

.nav-links li {
    margin: 0 15px;
}

.nav-link {
    color: var(--light-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--dark-color);
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--light-color);
    margin: 3px 0;
    transition: var(--transition);
}

.navbar.scrolled .bar {
    background-color: var(--dark-color);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 600px; /* Ensure minimum height */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 60px; /* Add padding to account for fixed navbar */
    /* Prevent horizontal overflow */
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px; /* Increase padding for smaller screens */
        min-height: 127vh; /* Ensure full viewport height on mobile */
    }

    .navbar {
        padding: 10px 5%; /* Adjust padding for mobile navbar */
        min-height: 60px;
    }

    .navbar.scrolled {
        padding: 8px 5%; /* Adjust padding for scrolled mobile navbar */
        min-height: 60px;
    }
}

.hero-content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    /* Prevent overflow on small screens */
    box-sizing: border-box;
}

.hero-text {
    flex: 1;
    color: var(--light-color);
    padding-right: 30px;
    /* Prevent text overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    /* Prevent text overflow on small screens */
    word-break: break-word;
    color: #ffffff !important;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.highlight {
    color: #ffd700;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    color: #ffffff;
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: profile-animate 8s ease-in-out infinite 1s;
}

@keyframes profile-animate {
    0% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--light-color);
    font-size: 24px;
}

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

/* Typing Animation */
.typing-text {
    display: flex;
    align-items: center;
    /* Prevent overflow on small screens */
    max-width: 100%;
    flex-wrap: wrap;
}

.typed-text {
    color: var(--accent-color);
    font-weight: 600;
    /* Prevent text overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-color);
    margin-left: 5px;
    animation: blink 1s infinite;
    /* Ensure cursor doesn't cause overflow */
    flex-shrink: 0;
}

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

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.about-image-container {
    width: 400px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
}

.about-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-color-light);
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-weight: 600;
    color: var(--dark-color);
}

.info-value {
    color: var(--text-color-light);
}

.about-buttons {
    margin-top: 20px;
}

/* ===== SKILLS SECTION ===== */
.skills {
    background-color: #f8f9fa;
}

.skills-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.skills-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.skills-text p {
    color: var(--text-color-light);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* New skill category card styles */
.skill-category-card {
    background-color: var(--light-color);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.skill-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(74, 99, 231, 0.1);
}

.skill-category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 8px 20px rgba(74, 99, 231, 0.3);
    position: relative;
}

.skill-category-icon::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    border-radius: 13px;
    pointer-events: none;
}

.skill-category-icon i {
    font-size: 1.8rem;
    color: white;
    z-index: 1;
}

.skill-category-header h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.5px;
}

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

.skill-item {
    background: linear-gradient(135deg, rgba(74, 99, 231, 0.05), rgba(255, 107, 107, 0.05));
    border: 1px solid rgba(74, 99, 231, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(74, 99, 231, 0.15);
}

.skill-item:hover::before {
    left: 100%;
}

.skill-info {
    display: block;
    margin: 0;
}

.skill-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.4;
}

.skill-progress {
    display: none;
}

.skill-percentage {
    display: none;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background-color: var(--light-color);
}

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

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

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.project-card {
    background-color: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer initial shadow */
    transition: all 0.3s ease-in-out; /* Smoother transition */
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 25px; /* Add padding to the card itself */
    border: 1px solid var(--border-color); /* Subtle border */
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01); /* Lift and slightly enlarge on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* More pronounced shadow on hover */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* .project-img is removed as per user request */

.project-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Responsive image loading */
.project-img.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.project-content {
    padding: 0; /* Remove padding from project-content as it's now on the card */
    width: 100%;
    /* Prevent content overflow */
    overflow: hidden;
    word-wrap: break-word;
}

.project-content h3 {
    font-size: 1.4rem; /* Slightly larger title */
    font-weight: 600; /* Bolder title */
    margin-bottom: 8px; /* Reduced margin */
    color: var(--dark-color);
    min-height: 2.8rem; /* Adjust min-height for new font size */
    /* Prevent title overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.project-content p {
    color: var(--secondary-color); /* Use secondary color for category */
    font-weight: 400; /* Lighter font weight */
    font-size: 0.95rem; /* Slightly smaller font size */
    margin-bottom: 12px; /* Adjusted margin */
    min-height: 1.2rem; /* Adjust min-height */
}

.project-description {
    color: var(--text-color-light) !important;
    font-weight: 400 !important;
    margin-bottom: 20px !important;
    flex-grow: 1; /* Allow description to take available space */
    line-height: 1.5; /* Improve readability */
}

.project-links {
    display: flex;
    gap: 20px; /* Increased gap for links */
    margin-top: 20px; /* Ensure some space from description */
    padding-top: 15px; /* Add padding above links */
    border-top: 1px solid var(--border-color); /* Separator line */
    justify-content: flex-start; /* Align links to start */
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Increased gap for icon and text */
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem; /* Slightly smaller link text */
}

.project-link:hover {
    color: var(--accent-color);
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    background-color: #f8f9fa;
}

/* ===== EDUCATION SECTION ===== */
.education {
    background-color: var(--light-color);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-date {
    position: absolute;
    top: -20px; /* Adjust position to be above the content */
    left: calc(50% + 40px);
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: var(--box-shadow);
    z-index: 3; /* Ensure it's above other elements */
}

.timeline-content {
    position: relative;
    width: calc(50% - 50px);
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-left: auto;
    margin-right: 0;
    margin-top: 30px; /* Increase top margin to accommodate date */
}

@media (max-width: 768px) {
    /* Remove timeline line and dots for mobile */
    .timeline::before {
        display: none; /* Hide timeline line on mobile */
    }

    .timeline-dot {
        display: none; /* Hide timeline dots on mobile */
    }

    .timeline-item {
        margin-bottom: 40px; /* Spacing between timeline items */
        padding: 0 15px; /* Add horizontal padding */
    }

    .timeline-date {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 0 0 15px 0; /* Reset margins, only bottom margin */
        display: block;
        width: fit-content;
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 8px 16px;
        border-radius: 25px;
        box-shadow: 0 2px 8px rgba(74, 99, 231, 0.2);
        font-weight: 600;
    }

    .timeline-item:nth-child(even) .timeline-date {
        margin: 0 0 15px 0; /* Same styling for even items */
    }

    .timeline-content {
        width: 100%; /* Full width content */
        margin: 0; /* Reset all margins */
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--border-color);
        background-color: var(--light-color);
    }

    .timeline-item:nth-child(even) .timeline-content {
        width: 100%; /* Same styling for even items */
        margin: 0;
    }
}

/* Additional mobile timeline fixes for very small screens */
@media (max-width: 576px) {
    .timeline {
        padding: 0 10px; /* Reduce side padding */
    }
    
    .timeline::before {
        left: 25px; /* Adjust timeline line position */
    }

    .timeline-dot {
        left: 25px; /* Align dot with timeline line */
        width: 16px; /* Slightly smaller dot */
        height: 16px;
    }

    .timeline-date {
        margin-left: 60px; /* Adjust for smaller dot */
        margin-bottom: 18px; /* Adequate spacing */
        padding: 6px 12px; /* Reduce padding */
        font-size: 0.85rem; /* Smaller font size */
        white-space: nowrap; /* Keep date on one line */
        max-width: calc(100% - 60px); /* Ensure it doesn't overflow */
        overflow: hidden; /* Hide overflow if needed */
        text-overflow: ellipsis; /* Add ellipsis for very long dates */
    }

    .timeline-content {
        width: calc(100% - 60px); /* Adjust for smaller spacing */
        margin-left: 60px;
        margin-top: 8px; /* Small top margin for separation */
        padding: 20px; /* Reduce padding further */
        padding-top: 25px; /* Extra top padding to avoid overlap */
        border-radius: 8px; /* Slightly smaller border radius */
    }
    
    .timeline-item:nth-child(even) .timeline-date,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px; /* Keep consistent positioning */
    }
    
    .timeline-content h3 {
        font-size: 1.2rem; /* Adjust heading size */
        margin-bottom: 8px;
    }
    
    .timeline-content h4 {
        font-size: 1rem; /* Adjust subheading size */
        margin-bottom: 12px;
    }
    
    .timeline-content p {
        font-size: 0.9rem; /* Smaller paragraph text */
        line-height: 1.5;
    }
}

@media (max-width: 375px) {
    .timeline {
        padding: 0 5px; /* Minimal side padding */
    }
    
    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
        width: 14px;
        height: 14px;
    }

    .timeline-date {
        margin-left: 50px;
        margin-bottom: 15px; /* Adequate spacing for small screens */
        padding: 5px 10px;
        font-size: 0.8rem;
        white-space: nowrap; /* Keep date on one line */
        max-width: calc(100% - 50px); /* Prevent overflow */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
        margin-top: 5px; /* Small separation */
        padding: 15px;
        padding-top: 20px; /* Extra top padding */
    }
    
    .timeline-item:nth-child(even) .timeline-date,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content h4 {
        font-size: 0.95rem;
    }
}

/* Timeline tags mobile responsiveness */
@media (max-width: 768px) {
    .timeline-tags {
        gap: 8px; /* Reduce gap between tags */
        margin-top: 15px;
    }
    
    .timeline-tags .tag {
        padding: 4px 8px; /* Smaller tag padding */
        font-size: 0.75rem; /* Smaller font size */
        border-radius: 12px; /* Smaller border radius */
    }
}

@media (max-width: 576px) {
    .timeline-tags {
        gap: 6px;
    }
    
    .timeline-tags .tag {
        padding: 3px 6px;
        font-size: 0.7rem;
        border-radius: 10px;
    }
}

/* Ensure timeline items have proper spacing and don't overlap */
@media (max-width: 768px) {
    .timeline-item {
        position: relative;
        /* margin-bottom: 60px; - handled by main mobile styles */
        min-height: auto; /* Let items size naturally */
    }
    
    .timeline-item:last-child {
        margin-bottom: 40px; /* Less margin for last item */
    }
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--light-color);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-info {
    flex: 1;
}

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

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

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

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

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-text p {
    color: var(--text-color-light);
    margin-bottom: 0;
}

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

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

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

.contact-form {
    flex: 1;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: #f8f9fa;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
    -webkit-appearance: none; /* Fix for iOS styling */
    appearance: none;
}

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

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

/* Responsive form styles */
@media screen and (max-width: 576px) {
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevent zoom on mobile */
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .contact-form .submit-btn {
        width: 100%;
        margin-top: 10px;
    }
}

.submit-btn {
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn i {
    transition: var(--transition);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #0a0a0a;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    margin-bottom: 60px;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--light-color);
}

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

.footer-links h3,
.footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--light-color);
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    max-width: 300px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #3951d1;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

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

/* ===== RESPONSIVE DESIGN ===== */
/* Large Desktops (1440px and up) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-text h1 {
        font-size: 4.5rem;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Desktops and Laptops (1025px to 1439px) */
@media screen and (max-width: 1439px) and (min-width: 1025px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
}

/* Tablets and Small Laptops (1024px and down) */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .profile-image-container {
        width: 300px;
        height: 300px;
    }
    
    .about-image-container {
        width: 350px;
        height: 350px;
    }
    
    /* Make timeline responsive for tablets */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-date {
        left: 80px;
        top: -40px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        margin-right: 0;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        left: auto;
        right: calc(50% + 40px);
    }
    
    /* Adjust project cards */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Adjust spacing */
    section {
        padding: 90px 0;
    }
}

/* Tablets (768px and down) */
@media screen and (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
        width: 100%;
        /* Ensure container never exceeds viewport width */
        box-sizing: border-box;
    }
    
    section {
        padding: 80px 0;
        /* Add scroll margin for mobile navigation */
        scroll-margin-top: 70px;
    }
    
    /* Ensure no horizontal overflow on any section */
    section * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Mobile navigation */
    .menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 50px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
        /* Prevent scrolling issues */
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-link {
        color: var(--dark-color) !important;
        display: block;
        width: 100%;
        font-size: 18px;
        padding: 10px 0;
    }
    
    /* Hero section */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
        width: 100%;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        /* Ensure text doesn't overflow */
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
        justify-content: center;
        /* Prevent overflow */
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    .hero-text p {
        /* Prevent paragraph overflow */
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* About section */
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        width: 100%;
    }
    
    .about-image {
        margin-bottom: 40px;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
    }
    
    /* Prevent text overflow in about section */
    .about-text {
        width: 100%;
        word-wrap: break-word;
    }
    
    .info-value {
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }
    
    /* Skills section */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .skill-category-card {
        padding: 25px;
    }
    
    .skill-category-header {
        margin-bottom: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .skill-category-icon {
        width: 50px;
        height: 50px;
        margin-right: 0;
    }
    
    .skill-category-icon i {
        font-size: 1.5rem;
    }
    
    .skill-category-header h4 {
        font-size: 1.3rem;
    }
    
    .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .skill-item {
        padding: 12px 15px;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    /* Projects section */
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        width: 100%;
    }
    
    .project-card {
        width: 100%;
        min-width: 0;
    }
    
    .project-description {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    
    .filter-btn {
        margin: 5px;
        padding: 8px 15px;
        min-width: auto;
    }
    
    /* Contact section */
    .contact-content {
        flex-direction: column;
        gap: 40px;
        width: 100%;
    }
    
    .contact-info {
        margin-bottom: 40px;
        width: 100%;
    }
    
    .contact-form {
        width: 100%;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links h3::after,
    .footer-newsletter h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .newsletter-form {
        margin: 0 auto;
    }
}

/* Mobile Safari viewport fix */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Prevent text size adjust on mobile */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Fix for mobile hover states */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .nav-link:hover,
    .project-card:hover {
        transform: none;
    }
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-date {
    position: absolute;
    top: -20px; /* Adjust position to be above the content */
    left: calc(50% + 40px);
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: var(--box-shadow);
    z-index: 3; /* Ensure it's above other elements */
}

.timeline-content {
    position: relative;
    width: calc(50% - 50px);
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-left: auto;
    margin-right: 0;
    margin-top: 30px; /* Increase top margin to accommodate date */
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-date {
    left: auto;
    right: calc(50% + 40px);
}

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

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.timeline-content p {
    color: var(--text-color-light);
    margin-bottom: 20px;
}

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

.tag {
    padding: 5px 12px;
    background-color: rgba(74, 99, 231, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(74, 99, 231, 0.2);
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(74, 99, 231, 0.3);
}

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
    .timeline {
        padding: 0 15px;
    }
    
    /* Hide timeline line and dots on mobile */
    .timeline::before {
        display: none;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-item {
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        gap: 10px; /* Reduced gap from 15px to 10px for better visual connection */
    }

    .timeline-date {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 0;
        background-color: var(--primary-color);
        color: var(--light-color);
        padding: 12px 20px;
        border-radius: 12px;
        font-weight: 500;
        font-size: 0.9rem;
        text-align: center;
        width: fit-content;
        align-self: flex-start;
        box-shadow: 0 4px 12px rgba(74, 99, 231, 0.25);
        white-space: nowrap;
        border: 2px solid rgba(74, 99, 231, 0.1);
    }

    .timeline-content {
        width: 100%;
        margin: 0;
        padding: 25px;
        background-color: var(--light-color);
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--border-color);
        transition: var(--transition);
    }

    .timeline-content:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
    
    /* Override the desktop alternating pattern for mobile - keep everything consistent */
    .timeline-item:nth-child(even) .timeline-date {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 0;
        align-self: flex-start;
        width: fit-content;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        width: 100%;
    }
}

/* Very small screens */
@media (max-width: 576px) {
    .timeline {
        padding: 0 10px;
    }
    
    /* Keep timeline line and dots hidden on very small screens too */
    .timeline::before {
        display: none;
    }

    .timeline-dot {
        display: none;
    }

    .timeline-item {
        margin-bottom: 30px;
        gap: 8px; /* Even smaller gap for very small screens */
    }

    .timeline-date {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 10px;
        align-self: flex-start;
        width: fit-content;
        margin: 0;
    }

    .timeline-content {
        padding: 20px;
        border-radius: 10px;
        width: 100%;
        margin: 0;
    }
    
    /* Ensure even items also follow the same pattern on very small screens */
    .timeline-item:nth-child(even) .timeline-date {
        align-self: flex-start;
        width: fit-content;
        margin: 0;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        width: 100%;
    }
}

/* Timeline tags mobile responsiveness */
@media (max-width: 768px) {
    .timeline-tags {
        gap: 8px; /* Reduce gap between tags */
        margin-top: 15px;
    }
    
    .timeline-tags .tag {
        padding: 4px 8px; /* Smaller tag padding */
        font-size: 0.75rem; /* Smaller font size */
        border-radius: 12px; /* Smaller border radius */
    }
}

@media (max-width: 576px) {
    .timeline-tags {
        gap: 6px;
    }
    
    .timeline-tags .tag {
        padding: 3px 6px;
        font-size: 0.7rem;
        border-radius: 10px;
    }
}

/* Ensure timeline items have proper spacing and don't overlap */
@media (max-width: 768px) {
    .timeline-item {
        position: relative;
        /* margin-bottom: 60px; - handled by main mobile styles */
        min-height: auto; /* Let items size naturally */
    }
    
    .timeline-item:last-child {
        margin-bottom: 40px; /* Less margin for last item */
    }
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--light-color);
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-info {
    flex: 1;
}

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

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

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

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

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-text p {
    color: var(--text-color-light);
    margin-bottom: 0;
}

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

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

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

.contact-form {
    flex: 1;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: #f8f9fa;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
    -webkit-appearance: none; /* Fix for iOS styling */
    appearance: none;
}

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

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

/* Responsive form styles */
@media screen and (max-width: 576px) {
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevent zoom on mobile */
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .contact-form .submit-btn {
        width: 100%;
        margin-top: 10px;
    }
}

.submit-btn {
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn i {
    transition: var(--transition);
}

.submit-btn:hover i {
    transform: translateX(5px);
}