/*
 * style.css
 * This file contains all the common CSS styles used across the portfolio website.
 * It has been refactored from inline styles in the HTML files for better maintainability.
 */

/* Root variables for consistent theming and easy updates */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --secondary: #ec4899;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --apdrak: #ffffff;
    --rd-color: #ef4444;
    --image-glow-color: rgba(79, 70, 229, 0.5);

    /* Light Mode Colors (Default) */
    --body-bg: var(--light);
    --card-bg2: var(--light);
    --text-color: var(--dark);
    --text-ft-color: var(--light);
    --header-bg: rgba(255, 255, 255, 0.85);
    /* Slightly more transparent for blur */
    --card-bg: white;
    --card-border: #e2e8f0;
    --section-bg-alt: #f1f5f9;
    --footer-bg: var(--darker);
    --footer-text: #94a3b8;
    --nav-link-color: var(--dark);
    --nav-link-hover: var(--primary);
    --cookie-bg: var(--section-bg-alt);
    --cookie-text: var(--dark-light);
    --cookie-btn-secondary-border: #333333;
    --cookie-btn-secondary-hover-bg: rgba(239, 68, 68, 0.8);
    --tab-pol: var(--primary);
    --testimonial-quote-color: rgba(79, 70, 229, 0.1);
    --filt: none;
}

/* Dark Mode Colors - applied when 'dark-mode' class is present on the body */
body.dark-mode {
    --body-bg: #0f172a;
    --card-bg2: #1e293b;
    --text-color: #f8fafc;
    --header-bg: rgba(15, 23, 42, 0.75);
    --card-bg: #1e293b;
    --card-border: #334155;
    --section-bg-alt: #020617;
    --footer-bg: #020617;
    --footer-text: #94a3b8;
    --nav-link-color: #f1f5f9;
    --nav-link-hover: #818cf8;
    /* Lighter indigo for better contrast */
    --cookie-bg: #1e293b;
    --cookie-text: #f1f5f9;
    --cookie-btn-secondary-border: #94a3b8;
    --cookie-btn-secondary-hover-bg: rgba(255, 255, 255, 0.1);
    --image-glow-color: rgba(139, 92, 246, 0.4);
    --tab-pol: #cbd5e1;
    --gray: #94a3b8;
    --flit: invert();
}

/* Base styles for all elements to ensure consistent box-model and typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Body typography, background, and smooth transitions for theme changes */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    transition: background-color 0.3s, color 0.3s;
}

/* Headings font style */
h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
    transition: color 0.3s;
}

/* Global container for content width limitation and centering */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Standard padding for all main sections */
section {
    padding: 100px 0;
}

/* Button primary style */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
    /* Colored shadow */
    transform: translateY(0);
}

/* Button hover effect */
.btn:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-5px) scale(1.03);
    /* Added slight scale for impact */
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.5), 0 10px 10px -5px rgba(79, 70, 229, 0.3);
}

/* Button secondary style */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
    /* Reset shadow for secondary out-of-box */
}

/* Button secondary hover effect */
.btn-secondary:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
    transform: translateY(-5px) scale(1.03);
}

/* Header and Navigation styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease-in-out;
    background: transparent;
}

/* Header style when scrolled */
header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

/* Navbar layout using flexbox for alignment */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Reset margins/paddings for direct children of navbar to prevent misalignment */
.navbar>* {
    margin: 0;
    padding: 0;
}

/* Logo style */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

/* Navigation links list */
.nav-links {
    display: flex;
    list-style: none;
    font-weight: bolder;
}

#navLinks li a {
    font-weight: 600;
}

.nav-links li {
    margin-left: 30px;
}

/* Navigation link style */
.nav-links a {
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

/* Underline effect for nav links on hover/active */
.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    transition: width 0.3s ease-in-out;
}

/* Nav link hover and active state */
.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

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

/* Mobile toggle button for navigation (hidden by default on desktop) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    margin-left: 15px;
    flex-shrink: 0;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-color);
    cursor: pointer;
    margin-left: auto;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark-mode .dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* General Section Title styles */
.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Underline effect for section titles */
.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 20px auto 0;
}

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

/* Background shape for hero section */
.hero:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
    filter: blur(40px);
    /* Add blur to make it a soft glow */
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero h1 .typed-text {
    color: var(--primary);
    border-bottom: 4px solid rgba(37, 99, 235, 0.2);
}

/* Typing cursor animation */
.hero h1 .cursor {
    display: inline-block;
    background-color: var(--primary);
    margin-left: 0.1rem;
    width: 3px;
    animation: blink 1s infinite;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 90%;
}

/* for begger hello iam text */
.hero .mktbg {
    font-size: 1.4rem;
}

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

/* Hero image positioning and animation */
.hero-image {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    max-width: 700px;
    animation: float 6s ease-in-out infinite;
}

/* Container for the social buttons, using flexbox for alignment */
.social-links-home {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 1.5rem;
    /* Space between the buttons */
    margin-bottom: 20px;
}

/* Class to hide the entire button group if needed */

/* Styling for the individual social buttons */
.social-button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    /* Use variable for theme-awareness */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Makes the button a perfect circle */
    background-color: var(--card-bg);
    /* Use variable for theme-awareness */
    border: 2px solid var(--primary);
    /* Use primary color for a clean look */
    transition: all 0.45s;
    /* Smooth transition for hover effects */
}

/* Hover effect for the social buttons */
.social-button:hover {
    transform: translateY(-5px) rotate(360deg);
    /* Lifts and rotates the button on hover */
    background-color: var(--primary);
    /* Use primary color for hover background */
    color: white;
    /* White text on hover */
    box-shadow: var(--shadow);
}

/* Styling for the Font Awesome icons inside the buttons */
.social-icon {
    font-size: 18px;
}

/* About Section styles */
#about {
    background-color: var(--card-bg);
}

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

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

/* About image styling with border effect */
.about-image img {
    max-width: 100%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    /* Combined shadows for inner ring, outer ring, MORE GLOW, and depth */
    box-shadow:
        0 0 0 10px var(--card-bg),
        /* Inner ring (matches card background) */
        0 0 0 12px var(--primary),
        /* Outer ring (primary color) */
        0 0 50px 15px var(--image-glow-color),
        /* Increased blur (50px) and spread (15px) for MORE GLOW */
        0 15px 30px rgba(0, 0, 0, 0.3);
    /* Deeper, general shadow */
    transition: box-shadow var(--transition), transform var(--transition);
}

.about-image img:hover {
    /* Enhance glow and lift on hover */
    box-shadow:
        0 0 0 10px var(--card-bg),
        0 0 0 12px var(--primary),
        0 0 70px 20px var(--image-glow-color),
        /* Even MORE intense glow on hover */
        0 20px 40px rgba(0, 0, 0, 0.4);
    /* Deeper shadow on hover */
    transform: translateY(-5px);
    /* Slightly lift the image */
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content .subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Stats grid in about section */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: var(--section-bg-alt);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

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

.stat-item p {
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

/* Why Choose Me Section Styles */
#why-choose-me {
    background-color: var(--section-bg-alt);
    color: var(--text-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
#why-choose-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="6" height="6" viewBox="0 0 6 6" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%2394a3b8" fill-opacity="0.1" fill-rule="evenodd"%3E%3Cpath d="M5 0h1L0 6V5zM6 5v1H0V0z"/%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.5;
    z-index: 0;
}

#why-choose-me .section-title {
    text-align: left;
    margin-bottom: 50px;
}

#why-choose-me .section-title h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#why-choose-me .section-title h2:before {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

#why-choose-me .section-title h2:after {
    display: none;
    /* Remove default underline */
}

#why-choose-me .section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0;
    font-size: 1.1rem;
}

.why-choose-me-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.why-choose-me-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.why-choose-me-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
    background: linear-gradient(to bottom right, var(--card-bg), var(--section-bg-alt));
}

.why-choose-me-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 800;
}

.why-choose-me-card p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
}

/* Benefits Section Styles */
#benefits {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-content: center;
}

.benefit-card {
    background-color: var(--section-bg-alt);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.benefit-content p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Service card hover effect */
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.2);
    border: 1px solid var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: rotate(15deg);
}

.service-card h3 {
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    color: var(--gray);
    transition: var(--transition);
}

/* Skills Section (New Tabbed Layout) styles */
#skills {
    background: var(--section-bg-alt);
    color: white;
    padding: 30px 0;
}

#skills .section-title h2 {
    color: var(--text-color);
}

#skills .section-title p {
    color: var(--gray);
}

#skills .section-title h2:after {
    background: var(--primary);
}

/* Skills tabs container */
.skills-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 4px solid var(--primary);
}

/* Individual tab button style */
.tab-btn {
    background: transparent;
    border: none;
    color: var(--tab-pol);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background-color: rgba(18, 80, 214, 0.1);
}

/* Active tab button style */
.tab-btn.active {
    background-color: var(--primary);
    color: white;
}

/* Tab content display */
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

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

/* Tech grid for skills */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.tech-card {
    background: var(--card-bg2);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 2px solid transparent;
}

.tech-card:hover {
    transform: translateY(-8px);
    background: rgba(79, 70, 229, 0.05);
    /* Premium transparent background */
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.15);
    border-color: var(--primary);
}

.tech-card img {
    height: 50px;
    margin-bottom: 15px;
    filter: var(--flit);
}

.tech-card p {
    font-weight: 500;
    color: var(--text-color);
}

/* Qualifications list style */
.qualifications-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.qualifications-list li {
    background: var(--dark-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.qualifications-list .icon {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Portfolio Section styles */
.portfolio {
    background: var(--section-bg-alt);
}

/* Portfolio filters layout */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

/* Portfolio filter button style */
.portfolio-filters button {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-color);
}

.portfolio-filters button:hover,
.portfolio-filters button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Portfolio grid layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    /* Adjusted transition to allow for display property change */
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

/* Hidden state for portfolio items during filtering */
.portfolio-item.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    /* Slightly shrink it as it fades out */
    /* Add a small delay then set display to none to remove it from layout */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease 0.3s;
    /* Delay visibility change */
    display: none !important;
    /* Forces it out of flow after transition */
}


/* Portfolio item hover effect */
.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

/* Portfolio overlay for hover actions */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(79, 70, 229, 0.5);
    /* Use primary color with opacity */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Styling for the single icon within the overlay */
.portfolio-overlay .overlay-icon-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.8rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.portfolio-overlay .overlay-icon-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--dark);
    color: white;
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.2);
}

.portfolio-info {
    padding: 25px;
    background: var(--card-bg);
}

.portfolio-info h3 {
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* New styles for buttons after project description */
.project-action-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 25px 25px;
    background: var(--card-bg);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

.project-action-btns .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    box-shadow: none;
    transform: translateY(0);
}

.project-action-btns .btn i {
    margin-right: 8px;
}

.project-action-btns .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

/* See More Projects Button Section */
.see-more-section {
    text-align: center;
    padding-top: 50px;
    padding-bottom: 30px;
}

.see-more-section h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-color);
}

.see-more-section .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: white;
    border: none;
}

.see-more-section .btn:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 20px 30px rgba(79, 70, 229, 0.4);
}

.see-more-section .btn i {
    margin-left: 10px;
}

/* Pricing Section Styles */
#pricing {
    background-color: var(--section-bg-alt);
    padding: 100px 0;
    color: var(--text-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: flex-start;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.pricing-card .card-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card .price span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gray);
    margin-left: 5px;
}

.pricing-card .card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
    text-align: left;
}

.pricing-card .card-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 1rem;
}

.pricing-card .card-features li i {
    color: var(--success);
    margin-right: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pricing-card .card-footer .btn {
    width: 100%;
    margin-top: auto;
}

/* Highlighted Card (Most Popular) */
.pricing-card.highlight {
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    color: white;
    transform: scale(1.05);
    border: 2px solid var(--primary-dark);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 50px 30px;
}

.pricing-card.highlight:hover {
    transform: translateY(-15px) scale(1.07);
    box-shadow: 0 35px 60px -15px rgba(79, 70, 229, 0.5);
    /* Glowing shadow */
}

.pricing-card.highlight .card-header h3,
.pricing-card.highlight .price,
.pricing-card.highlight .price span,
.pricing-card.highlight .card-features li,
.pricing-card.highlight .card-features li i {
    color: white;
}

.pricing-card.highlight .card-features li i {
    color: #d1fae5;
}

.pricing-card.highlight .btn {
    background: white;
    color: var(--primary);
}

.pricing-card.highlight .btn:hover {
    background: var(--dark-light);
    color: white;
}

/* "Most Popular" Badge */
.pricing-card .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--success);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.dark-mode .pricing-card.highlight .badge {
    background-color: #059669;
}

/* Testimonials Section styles */
#testimonials {
    background-color: var(--body-bg);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

/* Background shapes for testimonials section */

/* Main container for the testimonial section */
.testimonial-section {
    width: 100%;
}

/* Container for the slider content */
.testimonial-container {
    max-width: 48rem;
    /* 768px, equivalent to Tailwind's max-w-4xl */
    margin: 0 auto;
    padding: 2rem 3rem;
    /* 32px 48px, equivalent to Tailwind's p-8 and md:p-12 */
    background-color: var(--card-bg);
    /* Equivalent to Tailwind's bg-gray-800 */
    border-radius: 1rem;
    /* 16px, equivalent to Tailwind's rounded-2xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Equivalent to Tailwind's shadow-xl */
    position: relative;
}




/* Slider and navigation */
.testimonial-wrapper {
    position: relative;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 1rem;
    /* 16px, equivalent to Tailwind's p-4 */
    border-radius: 9999px;
    /* Equivalent to Tailwind's rounded-full */
    background-color: rgb(176, 189, 230);
    color: #fff;
    transition: all 0.3s;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    background-color: var(--primary);
}

#prev {
    left: -2.5rem;
}

/* -40px, equivalent to Tailwind's -left-10 */
#next {
    right: -2.5rem;
}

/* -40px, equivalent to Tailwind's -right-10 */

/* Show navigation buttons on larger screens */
@media (min-width: 768px) {
    .nav-button {
        display: flex;
    }
}

/* Testimonial slides */
.testimonial-slide {
    display: none;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeZoomIn 0.8s ease-in-out forwards;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    /* 24px, equivalent to Tailwind's gap-6 */
}

.testimonial-slide.active {
    display: flex;
    opacity: 1;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonial-content {
        flex-direction: row;
    }
}

/* Testimonial image */
.testimonial-image {
    width: 8rem;
    /* 128px, equivalent to Tailwind's w-32 */
    height: 8rem;
    /* 128px, equivalent to Tailwind's h-32 */
    border-radius: 9999px;
    /* Equivalent to Tailwind's rounded-full */
    object-fit: cover;
    flex-shrink: 0;
    animation: popIn 0.8s ease-in-out;
}

@media (min-width: 768px) {
    .testimonial-image {
        width: 10rem;
        /* 160px, equivalent to Tailwind's w-40 */
        height: 10rem;
        /* 160px, equivalent to Tailwind's h-40 */
    }
}

/* Testimonial text info */
.testimonial-info {
    text-align: center;
}

@media (min-width: 768px) {
    .testimonial-info {
        text-align: left;
    }
}

.client-name {
    font-size: 1.5rem;
    /* 24px, equivalent to Tailwind's text-2xl */
    font-weight: 700;
    /* Equivalent to Tailwind's font-bold */
    color: var(--text-color);
    /* Equivalent to Tailwind's text-gray-100 */
}

.client-role {
    font-size: 0.875rem;
    /* 14px, equivalent to Tailwind's text-sm */
    color: var(--primary);
    /* Equivalent to Tailwind's text-yellow-500 */
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    /* Equivalent to Tailwind's text-gray-300 */
    line-height: 1.625;
    /* 26px, equivalent to Tailwind's leading-relaxed */
    text-align: justify;
}

/* Custom quote styles via pseudo-elements */
.testimonial-text::before {
    content: "“";
    font-size: 2rem;
    color: var(--primary);
    /* Tailwind yellow-300 */
    font-weight: bold;
}

.testimonial-text::after {
    content: "”";
    font-size: 2rem;
    color: var(--primary);
    /* Tailwind orange-400 */
    font-weight: bold;
}

/* Navigation dots */
.dots-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
    /* 8px, equivalent to Tailwind's space-x-2 */
}

.dot {
    width: 0.75rem;
    /* 12px, equivalent to Tailwind's w-3 */
    height: 0.75rem;
    /* 12px, equivalent to Tailwind's h-3 */
    background-color: #4b5563;
    /* Equivalent to Tailwind's bg-gray-600 */
    border-radius: 9999px;
    /* Equivalent to Tailwind's rounded-full */
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--primary);
    /* Equivalent to Tailwind's bg-red-500 */
    transform: scale(1.25);
}

/* Keyframe animations */
@keyframes fadeZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Connect With Me Section Styles */
#connect {
    background-color: var(--section-bg-alt);
    color: white;
    padding: 100px 0;
}

#connect .section-title h2 {
    /* color: white; */
    text-align: left;
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

#connect .section-title h2:before {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* REMOVED UNDERLINE FROM CONNECT SECTION HEADING */
#connect .section-title h2:after {
    display: none;
}

#connect .section-title p {
    color: #94a3b8;
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-top: 10px;
}

.connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.connect-card {
    background-color: var(--card-bg2);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    text-decoration: none;
}

.connect-card.full-width {
    grid-column: 1 / -1;
}

.connect-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(31, 83, 226, 0.336);
    border-color: var(--primary);
}

.connect-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: background-color 0.3s, color 0.3s;
}

/* Specific icon colors and backgrounds */
.connect-card.linkedin .connect-icon-wrapper {
    background-color: #0A66C2;
    color: white;
}

.connect-card.twitter .connect-icon-wrapper {
    background-color: #000000;
    color: white;
}

.connect-card.github .connect-icon-wrapper {
    background-color: #333;
    color: white;
}

.connect-card.facebook .connect-icon-wrapper {
    background-color: #1877F2;
    color: white;
}

.connect-card.instagram .connect-icon-wrapper {
    background-color: #E4405F;
    color: white;
}

.connect-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.connect-text p {
    font-size: 0.95rem;
    color: var(--gray);
    margin: 0;
    text-decoration: wavy;
}

/* Contact Section styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

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

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

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

.contact-text h4 {
    margin-bottom: 5px;
}

.red-color {
    color: var(--rd-color);
}

.contact-form {
    position: relative;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--card-border);
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--card-bg);
    color: var(--text-color);
}

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

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

/* Form message styles (success/error) */
#form-message {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}

#form-message.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

#form-message.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid #059669;
}

/* Footer styles */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 70px 0 30px;
}

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

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    color: var(--text-ft-color);
}

/* Underline for footer column titles */
.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.footer-col p {
    color: var(--footer-text);
    margin-bottom: 20px;
}

.footer-col #whito {
    margin-bottom: 10px;
    color: var(--light);
}

#whito a {
    color: var(--primary);
}

/* Social links in footer */
.social-links {
    display: flex;
    gap: 15px;
}

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

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* Footer navigation links */
.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

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

.footer-links a i {
    margin-right: 10px;
    font-size: 0.8rem;
}

/* Footer newsletter form */
.footer-form .form-group {
    margin-bottom: 15px;
}

.footer-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--dark-light);
    background: var(--apdrak);
    color: var(--text-color);
    border-radius: var(--radius);
}

.footer-form .btn {
    display: block;
    width: 100%;
    text-align: center;
}

/* Copyright text */
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    font-size: 0.9rem;
}

/* Back to Top Button styles */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
    z-index: 999;
}

#back-to-top:hover {
    background: var(--primary-dark);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Re-added float animation for hero image */
@keyframes float {
    0% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-55%) translateX(10px);
    }

    100% {
        transform: translateY(-50%) translateX(0);
    }
}

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

    100% {
        transform: translateX(100%);
    }
}

@keyframes blink {
    50% {
        background-color: transparent;
    }
}

/* Animation on scroll utility class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie Consent Pop-up Styles */
#cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    background-color: var(--cookie-bg);
    color: var(--cookie-text);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    z-index: 10000;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0.5s ease-out;
}

#cookie-consent.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#cookie-consent p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: var(--cookie-text);
}

#cookie-consent a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    border-radius: 8px;
    box-shadow: none;
    transform: translateY(0);
}

.cookie-buttons .btn:hover {
    transform: translateY(-2px);
}

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

.cookie-buttons .btn-secondary:hover {
    background: var(--cookie-btn-secondary-hover-bg);
    color: white;
    border-color: white;
}

/* FAQ Section Styles */
#faq {
    background-color: var(--card-bg);
    padding: 100px 0;
}

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

.faq-item {
    background-color: var(--section-bg-alt);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    background-color: var(--section-bg-alt);
    border-bottom: 1px solid var(--card-border);
    transition: background-color 0.3s, color 0.3s;
}

.faq-question:hover {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

body.dark-mode .faq-question:hover {
    background-color: rgba(37, 99, 235, 0.2);
}

.faq-question i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    font-size: 1rem;
    color: var(--gray);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
    margin: 0;
}

.faq-answer.show {
    max-height: 200px;
    padding-top: 15px;
}

/* Project Detail Page Specific Styles */
.project-detail-section {
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: var(--body-bg);
}

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

.project-header h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.project-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}

.project-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.project-description h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.project-description p {
    color: var(--gray);
    margin-bottom: 15px;
}

.project-details-sidebar {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
}

.project-details-sidebar h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.project-details-sidebar h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.detail-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 1rem;
}

.detail-list li i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.project-gallery {
    margin-top: 60px;
    margin-bottom: 60px;
}

.project-gallery h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.project-actions {
    text-align: center;
    margin-top: 40px;
}

.project-actions .btn {
    margin: 0 10px;
}

/* Full-screen Image Modal (Lightbox) Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design Media Queries */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-image {
        display: none;
    }

    .why-choose-me-grid {
        display: none;
    }

    #why-choose-me-grid {
        padding-top: 20px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content p {
        max-width: 80%;
        margin: 0 auto 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .social-links-home {
        justify-content: center;
    }

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

    .about-image {
        margin-bottom: 50px;
    }

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

    .skills-image {
        order: -1;
        margin-bottom: 50px;
    }

    /* Navbar adjustments for smaller screens */
    .navbar {
        flex-wrap: wrap;
        justify-content: space-between;
        padding-bottom: 15px;
    }

    .logo {
        width: auto;
        margin-bottom: 0;
    }

    .nav-links {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .dark-mode-toggle {
        margin-left: auto;
        margin-right: 10px;
    }

    .mobile-toggle {
        margin-left: 10px;
    }

    /* Pricing grid on tablets */
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .pricing-card.highlight {
        transform: scale(1.02);
        padding: 40px 30px;
    }

    .pricing-card.highlight:hover {
        transform: translateY(-8px) scale(1.04);
    }

    /* Testimonial carousel adjustments for smaller screens */
    .testimonial-carousel-wrapper {
        width: 100%;
        /* Full width on smaller screens */
        max-width: none;
        padding: 20px;
        /* Adjust padding */
    }

    .testimonial-carousel-inner {
        margin: 0;
        /* Remove margin from inner carousel */
        /* Ensure height is dynamic */
        min-height: 300px;
        /* Give it a minimum height to prevent collapse */
        align-items: center;
        /* Center content vertically within inner */
    }

    .carousel-arrow {
        width: 45px;
        /* Slightly smaller arrows */
        height: 45px;
        font-size: 1.5rem;
        /* Smaller arrow icon */
        /* Position arrows relative to the wrapper, slightly inside */
        left: 5px;
        right: 5px;
        top: 50%;
        /* Re-center vertically */
        transform: translateY(-50%);
    }

    .prev-arrow {
        left: 5px;
    }

    .next-arrow {
        right: 5px;
    }

    .testimonial-content {
        flex-direction: column;
        /* Stack image and text vertically */
        align-items: center;
        /* Center content */
        text-align: center;
        /* Center text */
        gap: 15px;
    }

    .testimonial-image {
        margin-right: 0;
        /* Remove margin when stacked */
        margin-bottom: 15px;
        /* Add space below image */
    }

    .testimonial-info {
        text-align: center;
        /* Center name/role */
    }

    .testimonial-text {
        padding: 0;
        /* Remove padding for quotes */
    }

    .testimonial-text::before,
    .testimonial-text::after {
        font-size: 3rem;
        /* Smaller quotes on mobile */
        top: -10px;
        /* Adjust position */
        left: 0;
        /* Adjust position */
        right: 0;
        /* Adjust position */
    }

    .testimonial-text::after {
        bottom: -10px;
    }

    .project-main-image {
        height: 250px;
        /*  due to single project images on mobile */
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 50px 20px;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

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

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero {
        height: auto;
        padding: 150px 0 100px;
    }

    .skills-tabs {
        flex-direction: column;
        max-width: 300px;
    }

    .tab-btn {
        width: 100%;
    }

    /* Responsive adjustments for Why Choose Me section */
    #why-choose-me .section-title {
        text-align: center;
    }

    #why-choose-me .section-title h2 {
        justify-content: center;
    }

    #why-choose-me .section-title p {
        text-align: center;
    }

    /* Responsive adjustments for Benefits section */
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .benefit-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .benefit-icon {
        margin-bottom: 15px;
    }

    /* Cookie consent on smaller screens */
    #cookie-consent {
        bottom: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        width: calc(100% - 20px);
        padding: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-buttons .btn {
        width: 100%;
    }

    /* Pricing grid on mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.highlight {
        transform: scale(1.0);
        padding: 40px 30px;
    }

    .pricing-card.highlight:hover {
        transform: translateY(-10px) scale(1.0);
    }

    /* Connect Section mobile adjustments */
    #connect .section-title h2 {
        text-align: center;
        justify-content: center;
    }

    #connect .section-title p {
        text-align: center;
    }

    .connect-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .connect-icon-wrapper {
        margin-bottom: 15px;
    }

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

    /* Project detail page adjustments */
    .project-content-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }

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

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

    .footer-col h3:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}