/* Imports and Reset */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;900&display=swap');

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

html {
    scroll-behavior: smooth; /* Enable smooth scrolling for anchor links */
    height: 100%; /* Ensure the html spans the full height of the viewport */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0A0A0F 0%, #111827 100%);
    color: #F8F9FA;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
@media screen and (max-width: 768px) {
    body {
        background: #0A0A0F;
    }

    .hero-header {
        background: #0A0A0F;
        box-shadow: none;
        border-bottom: none;
        padding: 1rem;
    }

    .hero-header .logo {
        margin: 0;
        margin-left: 35px !important;
        text-decoration: none;
        border-bottom: none;
    }

    .hero-container {
        margin: 0;
        padding-top: 60px;
        padding-bottom: 20px;
        background: #0A0A0F;
    }

    .skills-section {
        margin: 0;
        padding: 2rem 1.5rem;
        background: #0A0A0F;
    }

    .about-section,
    .work-section,
    .services-section,
    .cta-section {
        margin: 0;
        padding: 2rem 1.5rem;
        background: #0A0A0F;
    }

    .footer {
        margin: 0;
        padding: 1rem;
        background: #0A0A0F;
    }
}

/* Hero Header */
.hero-header {
    position: fixed;
    top: 0;
    left: 0;  /* Changed from var(--sidebar-width, 0) */
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;  /* Changed from calc() */
    box-sizing: border-box;
    margin: 0;    /* Changed from auto */
    height: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #60A5FA;
    text-decoration: none;
    letter-spacing: -0.5px;
    z-index: 1100;
    display: block;
    margin-left: 20px;
}

/* Navigation Links */
.nav-links {
    display: none; /* Hide nav links by default */
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
   
    z-index: 1000;
    list-style: none;
    padding: 1rem;
    gap: 1rem;
}

/* Show nav links when active */
.nav-links.active {
    display: flex;
}

/* Hamburger Menu */
.hamburger {
    display: block; /* Ensure hamburger is visible on mobile */
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1101;
}

.hamburger div {
    background-color: #000; /* Color of the lines */
    height: 4px;
    width: 100%;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Add a @supports rule for backdrop-filter */
@supports not (backdrop-filter: blur(8px)) {
    .hero-header {
        background: rgba(10, 10, 15, 0.98); /* More opaque background for browsers without backdrop-filter support */
    }
}

@media (max-width: 768px) {
    .hero-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 1rem 5%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: none;
        box-shadow: none;
        text-decoration: none;
    }

    .logo {
        margin: 0;
    }

    .hamburger, .header-btn, .nav-links {
        display: none;
    }

    .cta-buttons {
        display: none !important;
    }

    /* Content area */
    .hero-content {
        display: flex;
        flex-direction: column;
        margin-top: 70px;
        text-align: center;
    }

    .badge {
        order: 1; /* Keep the badge above the hero title */
        margin-bottom: 1rem; /* Add spacing below the badge */
        text-align: center;
    }

    .hero-title {
        order: 2; /* Ensure the hero title is above the description */
    }

    .hero-description {
        order: 3; /* Place the hero description directly under the title */
        margin-top: 1rem; /* Add spacing above the description */
    }

    .nav-links {
        display: none !important; /* Completely hide navigation links on mobile */
    }

    .nav-links a {
        display: none !important; /* Ensure individual links are hidden */
    }
}

@media (min-width: 768px) {
    .hamburger {
        display: none; /* Hide hamburger on larger screens */
    }

    .nav-links {
        display: flex; /* Show nav links by default on larger screens */
        position: static;
        flex-direction: row;
        gap: 3rem;
        background: none;
        padding: 0;
        box-shadow: none;
    }
}

/* Navigation - Centered */
.nav-links a {
    text-decoration: none;
    color: #F8F9FA;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #60A5FA;
}

/* Hire Me - Top Right */
.header-btn {
    text-decoration: none;
    color: #F8F9FA;
    border: 1px solid #3B82F6;  /* Updated color */
    padding: 0.8rem 1.5rem; /* Adjust padding for better touch targets */
    border-radius: 50px;  /* More rounded */
    font-size: 1rem; /* Slightly larger font for better readability */
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #3B82F6;
    color: #F8F9FA;  /* Changed to white for better contrast */
}

/* H2 Title */
.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #F8F9FA;
    max-width: 800px;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    line-height: 1.1;
    animation: fadeInDown 0.6s ease 0.1s backwards;
}

/* Paragraph */
.hero-description {
    font-size: 1.25rem;
    color: rgba(248, 249, 250, 0.7);  /* Softer text */
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 300;  /* Lighter weight for better contrast */
    animation: fadeInDown 0.6s ease 0.2s backwards;
}

/* Hero Container */
.hero-container {
    padding-top: 80px; /* Add padding to account for the header height */
    padding-bottom: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Prevent sections from shrinking */
    background: linear-gradient(135deg, #0A0A0F 0%, #1E293B 100%);
}

/* Hero Section - Centered */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 5%;
}

/* Hero Content */
.hero-content {
    padding-top: 80px; /* Space for fixed header */
    padding-bottom: 100px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    animation: fadeInUp 0.6s ease 0.3s backwards;
    margin-top: 2rem;
}

.btn {
    text-decoration: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;  /* More rounded */
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn.primary {
    background-color: #3B82F6;  /* Updated color */
    color: #F8F9FA;  /* Changed to white for better contrast */
    border: 1px solid #3B82F6;
}

.btn.primary:hover {
    background-color: #2563EB;  /* Slightly darker on hover */
    border-color: #2563EB;
    transform: translateY(-1px);
}

.btn.secondary {
    border: 1px solid #3B82F6;  /* Updated color */
    color: #F8F9FA;
    background: transparent;
}

.btn.secondary:hover {
    background-color: rgba(59, 130, 246, 0.1);  /* Updated hover color */
    transform: translateY(-1px);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-header {
        flex-wrap: wrap;
        padding: 1rem 3%;
    }

    .nav-links {
        gap: 2rem; /* Adjust spacing between links */
    }

    .hero-title {
        font-size: 3rem; /* Adjust title size for tablets */
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1.1rem; /* Adjust description size */
        line-height: 1.5;
    }

    .skills-container {
        grid-template-columns: 1fr 1fr; /* Two columns for skills */
        gap: 1.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for projects */
        gap: 1.5rem;
    }

    .services-container {
        grid-template-columns: 1fr 1fr; /* Two columns for services */
        gap: 2rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .header-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
    }

    

    .btn {
        padding: 0.8rem 1.8rem;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .work-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .skills-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .services-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .header-btn {
        font-size: 0.9rem; /* Slightly larger font size for larger phones */
        padding: 0.7rem 1.5rem; /* Adjust padding for better proportions */
    }

    .hero-title {
        font-size: 2.8rem; /* Adjust title size for larger phones */
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1.1rem; /* Adjust description size */
        line-height: 1.5;
    }

    .cta-buttons {
        gap: 1.2rem; /* Adjust spacing between buttons */
    }

    .btn {
        padding: 0.9rem 2rem; /* Adjust button padding */
    }

    .about-title {
        font-size: 2.8rem; /* Adjust about section title size */
    }

    .about-text p {
        font-size: 1.1rem; /* Adjust paragraph size */
        line-height: 1.7;
    }

    .work-grid {
        grid-template-columns: 1fr 1fr; /* Two-column layout for projects */
        gap: 2rem; /* Adjust spacing between items */
    }

    .skills-container {
        grid-template-columns: 1fr 1fr; /* Two-column layout for skills */
        gap: 2rem;
    }

    .services-container {
        grid-template-columns: 1fr 1fr; /* Two-column layout for services */
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr; /* Two-column layout for footer links */
        gap: 2rem;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .header-btn {
        font-size: 1rem; /* Slightly larger font size for bigger phones */
        font-size: 0.85rem; /* Adjust description size */
        line-height: 1.4;
    }

    .hero-container {
        padding: 1rem; /* Add consistent padding */
    }

    .cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0.8rem; /* Reduce gap between buttons */
    }

    .btn {
        width: 100%; /* Full-width buttons for smaller screens */
    }

    .about-section {
        padding: 80px 3%; /* Reduce padding for smaller screens */
    }

    .about-title {
        font-size: 2rem; /* Adjust title size */
        text-align: center;
    }

    .about-text p {
        font-size: 0.9rem; /* Adjust paragraph size */
        line-height: 1.5;
    }

    .work-section {
        padding: 80px 3%; /* Reduce padding */
    }

    .work-grid {
        grid-template-columns: 1fr; /* Single-column layout for projects */
        gap: 1rem; /* Adjust spacing between items */
    }

    .skills-section {
        padding: 60px 3%; /* Reduce padding */
    }

    .skills-container {
        grid-template-columns: 1fr; /* Single-column layout for skills */
        gap: 1rem;
    }

    .services-section {
        padding: 80px 3%; /* Reduce padding */
    }

    .services-container {
        grid-template-columns: 1fr; /* Single-column layout for services */
        gap: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem; /* Adjust padding for smaller screens */
    }

    .cta-section {
        padding: 80px 3%; /* Reduce padding */
    }

    .footer-links {
        grid-template-columns: 1fr; /* Stack footer links vertically */
        gap: 1rem; /* Adjust spacing */
    }

    .footer-bottom {
        flex-direction: column; /* Stack footer bottom content */
        text-align: center;
        gap: 1rem; /* Add spacing between elements */
    }

    .footer-social {
        justify-content: center; /* Center-align social icons */
        gap: 1rem; /* Adjust spacing between icons */
    }

    .header-btn {
        font-size: 0.8rem; /* Smaller font size for phones */
        padding: 0.5rem 1rem; /* Reduce padding for smaller buttons */
    }
}

/* New Badge Style */
.badge {
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: fadeInDown 0.6s ease;
    z-index: 1100; /* Ensure the badge is visible above other elements */
    order: 1;
}

/* Title Highlight */
.hero-title .highlight {
    background: linear-gradient(to right, #3B82F6, #60A5FA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* About Section */
.about-section {
    position: relative;
    padding: 140px 5%;
    background: linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
    flex-shrink: 0; /* Prevent sections from shrinking */
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 8rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 2px; /* More modern, minimal look */
    overflow: hidden;
    aspect-ratio: 4/5;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1);
    transition: transform 0.7s ease;
}

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

.about-content {
    padding: 2rem 0;
}

.about-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #F8F9FA;
    letter-spacing: -1px;
    line-height: 1.1;
    position: relative;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(248, 249, 250, 0.9);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

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

    .about-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

@media (max-width: 768px) {
    .about-section {
        padding: 100px 5%;
    }

    .about-title {
        font-size: 2.5rem;
    }
}

/* Work Section - Static Grid Layout */
.work-section {
    padding: 120px 5%;
    background: linear-gradient(200deg, #0B1120 0%, #152238 100%);
    overflow: hidden;
    text-align: center; /* Center-align content */
    flex-shrink: 0; /* Prevent sections from shrinking */
}

.section-title {
    font-size: 2.5rem; /* Adjust font size if needed */
    font-weight: 700;
    color: #F8F9FA;
    margin-bottom: 1rem; /* Add spacing below the title */
}

.section-description {
    font-size: 1.2rem; /* Adjust font size if needed */
    color: rgba(248, 249, 250, 0.7);
    margin-bottom: 2rem; /* Add spacing below the description */
}

.work-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section title and description are already centered in your existing CSS */

/* Replace slider with static grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Project Card Styles - keep most of the existing styles */

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease; /* Smooth zoom effect */
}

.project-image:hover img {
    transform: scale(1.1); /* Zoom in slightly on hover */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .work-section {
        padding: 80px 5%;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Skills Section */
.skills-section {
    padding: 4rem 1.5rem 6rem;
    background: #0A0A0F;
}

.skills-section .section-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.skills-section .section-description {
    color: #94A3B8;
    text-align: center;
    margin-bottom: 6rem;
    font-size: 1.1rem;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeInUp 0.6s ease 0.4s backwards;
    margin-bottom: 4rem;
    padding: 0 1.5rem;
}

.skill-bar {
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    color: #E2E8F0;
    font-size: 1rem;
}

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

.skill-info span:last-child {
    color: #60A5FA;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    position: relative;
    transition: width 1s ease-in-out;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: shimmer 2s infinite;
}

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

.progress.html { width: 95%; }
.progress.javascript { width: 85%; }
.progress.uiux { width: 90%; }

/* Update responsive design */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Services Section */
.services-section {
    padding: 120px 5%;
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    text-align: center; /* Center-align content */
    flex-shrink: 0; /* Prevent sections from shrinking */
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* Remove gap between cards */
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    transition: background-color 0.3s ease;  /* Changed transition */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    border-left: none;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);  /* Slightly lighter background on hover */
    /* Remove transform */
}

.service-card i {
    font-size: 2rem;
    color: #3B82F6;
    margin-bottom: 1.5rem;
}

.service-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F8F9FA;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(248, 249, 250, 0.7);
    margin-bottom: 2rem;  /* Ensure consistent spacing before CTA */
}

.service-cta {
    display: inline-block;
    color: #3B82F6;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;  /* Add some vertical padding */
}

.service-cta:hover {
    color: #60A5FA;
}

/* Update responsive design to maintain connected look */
@media (max-width: 968px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        border-bottom: none;
    }
    
    .service-card:first-child {
        border-radius: 16px 0 0 0;
    }
    
    .service-card:nth-child(2) {
        border-radius: 0 16px 0 0;
    }
    
    .service-card:nth-child(3) {
        border-radius: 0 0 16px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        margin-bottom: 1rem;
    }
    
    .service-card:first-child,
    .service-card:nth-child(2),
    .service-card:last-child {
        border-radius: 16px;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 120px 5%;
    background: linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.testimonials-content {
    position: static; /* Change from sticky to static */
    top: auto; /* Remove the top offset */
}
    
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(248, 249, 250, 0.9);
    margin-bottom: 2rem;
    position: relative;
}

.client-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F8F9FA;
    margin-bottom: 0.25rem;
}

.client-info span {
    font-size: 0.9rem;
    color: rgba(248, 249, 250, 0.6);
}

/* Update testimonials content alignment */
.testimonials-content .section-title,
.testimonials-content .section-description {
    text-align: left;
}

/* Remove quote marks and adjust spacing */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

/* Remove .quote class as we don't need it anymore */

/* Responsive Design */
@media (max-width: 1200px) {
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .testimonials-content {
        position: static;
        text-align: center;
    }

    .testimonials-content .section-title,
    .testimonials-content .section-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-section {
        padding: 80px 5%;
    }
}
/* CTA Section */
.cta-section {
    padding: 100px 5%;
    background: linear-gradient(160deg, #0A0A0F 0%, #111827 100%);
    text-align: center;
    flex-shrink: 0; /* Prevent sections from shrinking */
    background: linear-gradient(135deg, #1E293B 0%, #0A0A0F 100%);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-icon {
    color: #F8F9FA;
    font-size: 2.5rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #3B82F6;
}

/* Footer Styles */
.footer {
    background: #0A0A0F;
    padding: 2rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    padding-top: 70px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-logo .logo {
    font-size: 2rem;
    color: #60A5FA;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(248, 249, 250, 0.7);
    font-size: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
    justify-content: center; /* Center-align links */
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #F8F9FA;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    text-decoration: none;
    color: rgba(248, 249, 250, 0.7);
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: #3B82F6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(248, 249, 250, 0.6);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: rgba(248, 249, 250, 0.7);
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: #3B82F6;
}

/* Responsive Design */
@media (max-width: 968px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Add spacing between columns */
    }

    .footer-bottom {
        flex-direction: column; /* Stack footer bottom content */
        text-align: center;
        gap: 1rem; /* Add spacing between elements */
    }

    .footer-social {
        justify-content: center; /* Center-align social icons */
        gap: 1rem; /* Reduce spacing between icons */
    }

    .social-icons {
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .footer-logo .logo {
        font-size: 1.5rem; /* Adjust logo size for smaller screens */
    }

    .footer-tagline {
        font-size: 0.9rem; /* Adjust tagline size */
    }

    .footer-column h4 {
        font-size: 1rem; /* Adjust column title size */
    }

    .footer-column ul li {
        margin-bottom: 0.5rem; /* Reduce spacing between list items */
    }

    .footer-bottom p {
        font-size: 0.8rem; /* Adjust copyright text size */
    }
}
/* Add these CSS rules */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #F8F9FA;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100; /* Ensure the hamburger menu is above other elements */
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        order: 2;
    }

    .hero-header {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
        display: none;
        z-index: 1000;
        margin-top: 1rem; /* Add spacing below the logo */
        display: flex; /* Ensure the navigation menu is visible */
    }

    .nav-links.active {
        display: flex;
    }

    .header-btn, .nav-links {
        display: none;
    }

    /* Reset mobile header layout */
    .hero-header {
        flex-direction: row !important;
        padding: 1rem 5%;
    }

    .logo, .nav-links, .header-btn {
        margin: 0 !important;
        transform: none !important;
        position: static !important;
    }
}

/* iPhone-specific optimizations */
@media screen and (max-width: 414px) {
    /* Adjust header for thumb reach */
    .hero-header {
        padding: 0.8rem 4%;
        height: 70px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Move primary actions to bottom of screen */
    .cta-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(8px);
        padding: 1rem;
        z-index: 999;
        flex-direction: row;
        gap: 1rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    }

    .btn {
        flex: 1;
        padding: 1rem;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
    }

    .btn.primary {
        background: #60A5FA;
        color: #0A0A0F;
    }

    .btn.secondary {
        background: rgba(96, 165, 250, 0.1);
        border: 1px solid rgba(96, 165, 250, 0.2);
        color: #60A5FA;
    }

    /* Adjust main content to account for fixed CTA */
    main, section {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    /* Optimize touch targets and spacing */
    .nav-links a,
    .social-icon,
    .service-card,
    .project-image {
        margin-bottom: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        margin: 0.75rem;
    }

    /* Adjust work grid for better mobile viewing */
    .work-grid {
        padding: 0 0.75rem;
    }

    .project-image {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Optimize skills section */
    .skills-container {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .skill-bar {
        margin-bottom: 2rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    /* Adjust about section for mobile */
    .about-container {
        padding: 2rem 1rem;
    }

    .about-image {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        margin: 0 auto 2rem;
        overflow: hidden;
    }

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

    /* Optimize services section */
    .services-container {
        padding: 0 0.75rem;
    }

    .service-card {
        text-align: left;
        display: flex;
        flex-direction: column;
    }

    .service-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    /* Footer optimizations */
    .footer-container {
        padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom));
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-top: 2rem;
    }

    /* Social icons optimization */
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin: 2rem 0;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Safe area insets for iPhone notch */
@supports (padding: max(0px)) {
    .hero-header {
        padding-top: max(0.8rem, env(safe-area-inset-top));
        padding-left: max(4%, env(safe-area-inset-left));
        padding-right: max(4%, env(safe-area-inset-right));
    }

    .cta-buttons {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* iPhone 11 and similar devices */
@media screen and (max-width: 375px) {
    /* Header Layout */
    .hero-header {
        height: 60px;
        padding: 0 1rem;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(8px);
    }

    .logo {
        font-size: 1.2rem;
        grid-column: 1;
    }

    .hamburger {
        grid-column: 3;
        font-size: 1.5rem;
        color: #60A5FA;
        background: none;
        border: none;
        padding: 0;
        margin: 0;
    }

    .header-btn, .nav-links {
        display: none;
    }

    /* Hero Content */
    .hero-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .badge {
        margin-bottom: 1.5rem;
        padding: 0.5rem 1rem;
        background: rgba(96, 165, 250, 0.1);
        border: 1px solid rgba(96, 165, 250, 0.2);
        border-radius: 20px;
        font-size: 0.9rem;
        color: #60A5FA;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        color: #fff;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        color: #94A3B8;
    }

    /* CTA Buttons in Hero */
    .cta-buttons {
        width: 100%;
        display: flex;
        gap: 0.8rem;
    }

    .btn {
        flex: 1;
        padding: 0.8rem;
        border-radius: 8px;
        font-size: 0.9rem;
        text-align: center;
        font-weight: 500;
    }

    .btn.primary {
        background: #60A5FA;
        color: #0A0A0F;
    }

    .btn.secondary {
        background: rgba(96, 165, 250, 0.1);
        border: 1px solid rgba(96, 165, 250, 0.2);
        color: #60A5FA;
    }

    /* Skills Section */
    .skills-section {
        padding: 2rem 1.5rem;
        background: rgba(255, 255, 255, 0.02);
        margin-top: 1rem;
    }

    .skills-title {
        font-size: 1.5rem;
        color: #fff;
        margin-bottom: 1.5rem;
        text-align: center;
        font-weight: 600;
    }

    .skill-bar {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .skill-info {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.8rem;
        color: #E2E8F0;
        font-size: 0.9rem;
    }

    .progress-bar {
        height: 6px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        overflow: hidden;
    }

    .progress {
        height: 100%;
        border-radius: 3px;
        background: #60A5FA;
    }

    .progress.html { width: 95%; }
    .progress.javascript { width: 85%; }
    .progress.uiux { width: 90%; }
}

/* Safe area insets for iPhone notch and home indicator */
@supports (padding: max(0px)) {
    .hero-header {
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .cta-buttons {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
}

/* iPhone 11 specific styles */
@media screen and (device-width: 414px) and (device-height: 896px),
       screen and (device-width: 375px) and (device-height: 812px),
       screen and (max-width: 414px) and (max-height: 896px) {
    .hero-header {
        padding-top: 0.5rem;
    }

    .hero-content {
        margin-top: 50px;
        padding-top: 0;
    }

    body {
        min-height: -webkit-fill-available;
    }

    html {
        height: -webkit-fill-available;
    }

    .skills-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .about-section {
        padding-top: 2rem;
    }

    .work-section {
        padding-top: 2rem;
    }

    .services-section {
        padding-top: 2rem;
    }

    .cta-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .footer {
        padding: 1rem 1.5rem;
    }
}