/* Base Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #7c3aed;
    --accent-color: #4f46e5;
    --text-color: #334155;
    --text-light: #64748b;
    --text-dark: #1e293b;
    --light-color: #f8fafc;
    --bg-color: #ffffff;
    --card-bg: #f1f5f9;
    --border-color: #e2e8f0;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-text: #e2e8f0;
    --dark-border: #334155;
    
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition-normal);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6 {
    color: var(--light-color);
}

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

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

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

body.dark-mode .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    background-color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-mode .navbar {
    background-color: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

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

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition-normal);
}

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

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

.theme-toggle {
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

body.dark-mode .theme-toggle {
    color: var(--light-color);
}

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

.nav-toggle, .nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

body.dark-mode .nav-toggle,
body.dark-mode .nav-close {
    color: var(--light-color);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-light);
    font-weight: 400;
}

body.dark-mode .hero-subtitle {
    color: rgba(255,255,255,0.7);
}

.hero-description {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 500px;
}

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

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

/* Particle Background Styles */
.particle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind content but above default background */
    overflow: hidden;
}

.particle-background iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* Update existing hero styles (around line 290) */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: none !important; /* Remove any existing background */
}

.hero .container {
    position: relative;
    z-index: 2; /* Ensure content stays above particles */
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    color: var(--text-dark);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

body.dark-mode .social-link {
    background-color: var(--dark-card);
    color: var(--light-color);
}

.social-link:hover {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
}

.image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    filter: blur(50px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: -30px;
    animation: float 8s ease-in-out infinite;
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.about-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
}

body.dark-mode .detail-item {
    background-color: var(--dark-card);
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.detail-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.detail-item h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.detail-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

body.dark-mode .detail-item p {
    color: rgba(255,255,255,0.7);
}

/* Skills Section */
.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

body.dark-mode .tab-btn {
    border-color: var(--dark-border);
    color: var(--light-color);
}

.tab-btn.active {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.skills-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.skill-item {
    margin-bottom: 25px;
}

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

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

.skill-info span:first-child {
    font-weight: 500;
}

.skill-info span:last-child {
    color: var(--text-light);
}

body.dark-mode .skill-info span:last-child {
    color: rgba(255,255,255,0.7);
}

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

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

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 0 2px var(--card-bg);
}

body.dark-mode .progress::after {
    box-shadow: 0 0 0 2px var(--dark-card);
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

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

body.dark-mode .filter-btn {
    border-color: var(--dark-border);
    color: var(--light-color);
}

.filter-btn.active {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

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

.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-normal);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-normal);
    text-align: center;
    color: white;
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.project-overlay p {
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: var(--transition-normal);
    transition-delay: 0.1s;
}

.project-link {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transform: translateY(20px);
    transition: var(--transition-normal);
    transition-delay: 0.2s;
}


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

.project-card:hover .project-overlay h3,
.project-card:hover .project-overlay p,
.project-card:hover .project-link {
    transform: translateY(0);
}
.project-card:hover .project-image img {
    transform: scale(1.1);
}

.text-center {
    text-align: center;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
    text-align: center;
}


body.dark-mode .service-card {
    background-color: var(--dark-card);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

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

body.dark-mode .service-card p {
    color: rgba(255,255,255,0.7);
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link i {
    transition: var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(3px);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--card-bg);
}

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

.testimonials-slider {
    padding: 20px;
}

.testimonial-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin: 20px;
}

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

.testimonial-content {
    position: relative;
    margin-bottom: 30px;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -15px;
    left: -10px;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    z-index: 1;
}

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

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--text-light);
}

body.dark-mode .testimonial-author p {
    color: rgba(255,255,255,0.7);
}

.swiper-pagination-bullet {
    background-color: var(--text-light);
    opacity: 1;
    width: 12px;
    height: 12px;
}

body.dark-mode .swiper-pagination-bullet {
    background-color: rgba(255,255,255,0.5);
}

.swiper-pagination-bullet-active {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: grid;
    gap: 20px;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-normal);
}

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

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

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

body.dark-mode .contact-card p {
    color: rgba(255,255,255,0.7);
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-card a i {
    font-size: 1rem;
    margin: 0;
    transition: var(--transition-fast);
}

.contact-card a:hover i {
    transform: translateX(3px);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .contact-form {
    background-color: var(--dark-card);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: transparent;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition-normal);
    color: var(--text-dark);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    border-color: var(--dark-border);
    color: var(--light-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
}

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

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-color);
    padding: 80px 0 0;
}

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

.footer-about {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
    font-family: var(--heading-font);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

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

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-links ul li a {
    opacity: 0.8;
    transition: var(--transition-fast);
}

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

.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-newsletter p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    font-family: var(--body-font);
    font-size: 1rem;
}

.footer-newsletter button {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    cursor: pointer;
    transition: var(--transition-normal);
}

.footer-newsletter button:hover {
    opacity: 0.9;
}

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

.footer-bottom p {
    opacity: 0.7;
    margin-bottom: 10px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-legal a {
    opacity: 0.7;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-info {
    /* Your existing styles */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.project-info.active {
    opacity: 1;
    visibility: visible;
}

/* For touch devices, you might want to add this */
@media (hover: none) {
    .project-card {
        cursor: pointer; /* Makes it clear it's clickable */
    }
}
/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        order: 2;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .hero-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-info {
        text-align: center;
    }
    
    .about-details {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px;
        transition: var(--transition-normal);
        z-index: 1000;
    }

    body.dark-mode .nav-menu {
        background-color: var(--dark-bg);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .nav-toggle, .nav-close {
        display: flex;
    }
    
    .nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile-specific hero fixes */
@media (max-width: 576px) {
    .hero {
      padding: 120px 0 40px;
      min-height: auto;
      height: auto;
      overflow: hidden;
      display: block; /* Change from flex to block */
    }
  
    .hero .container {
      display: flex;
      flex-direction: column;
      gap: 30px;
      padding: 0 15px;
    }
  
    .hero-content {
      order: 2;
      text-align: center;
      width: 100%;
      padding: 0 10px;
    }
  
    .hero-title {
      font-size: 2rem;
      line-height: 1.2;
      word-break: break-word;
    }
  
    .hero-subtitle {
      font-size: 1.1rem;
      margin-bottom: 15px;
    }
  
    .hero-description {
      font-size: 1rem;
      margin-bottom: 20px;
    }
  
    .hero-buttons {
      flex-direction: column;
      gap: 10px;
      margin-bottom: 25px;
    }
  
    .hero-social {
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-top: 20px;
    }
  
    .social-link {
      width: 36px;
      height: 36px;
      font-size: 1rem;
    }
  
    .hero-image {
      order: 1;
      width: 100%;
      max-width: 280px;
      margin: 0 auto;
    }
  
    .image-wrapper {
      max-width: 250px;
      margin: 0 auto;
    }
  
    .shape {
      display: none; /* Hide decorative shapes on mobile */
    }
  }
  
  /* For very small phones (under 400px) */
  @media (max-width: 400px) {
    .hero-title {
      font-size: 1.8rem;
    }
    
    .hero-subtitle {
      font-size: 1rem;
    }
    
    .hero-social {
      gap: 8px;
    }
    
    .hero-buttons .btn {
      padding: 10px 15px;
      font-size: 0.9rem;
    }
  }
