/* Global Styles */
:root {
    --primary-color: #003d82;
    --secondary-color: #0056b3;
    --accent-color: #007bff;
    --text-color: #333;
    --light-bg: #f0f4f8; 
    --secondary-bg: #f8f9fa;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --muted-text-color: #7f6a6a;     /* For subtext, placeholders */
    --surface-color: #f9feff;        /* Slightly off-white for cards */
    --rich-background:#0f172a;
    --rich-background-secondary:rgba(15, 23, 42, 0.7);
    
}

.theme-logo{
    --primary-color: #a2585a;        /* Refined rose copper */
    --secondary-color: #c88f8a;      /* Warm blush for backgrounds/elements */
    --accent-color: #733e3e;         /* Deep accent for contrast */
    --text-color: #3d2c2c;           /* Soft warm brown for primary text */
    --light-bg: #fdf7f5;             /* Light creamy pink-beige background */
    --secondary-bg: #f8f9fa;
    --muted-text-color: #7f6a6a;     /* For subtext, placeholders */
    --surface-color: #fffaf9;        /* Slightly off-white for cards */
    --border-color: #ebd4d4;         /* Subtle rose-toned border */
    --highlight-color: #e1a6a1;      /* Hover / focus state color */
    --shadow-color: rgba(210, 150, 145, 0.2);  /* Soft shadows */
    --rich-background: #3d1e25;       /* Rich background color */
    --rich-background-secondary: rgb(88 43 53 / 70%);
}
 
  

  .theme-logo-dark {
    --primary-color: #d48789;        /* Lighter rose copper for emphasis */
    --secondary-color: #b07370;      /* Muted blush for backgrounds/elements */
    --accent-color: #a05253;         /* Deep accent for contrast */
    --text-color: #ffb1ae;           /* Soft warm light text */
    --light-bg: #1a0e11;             /* Dark pinkish brown background */
    --secondary-bg: rgb(77 47 54);        /* Light creamy pink-beige background */
    --muted-text-color: #a68d8c;     /* Muted lighter text for subtext */
    --surface-color: #422f2f;        /* Darker off-black card surfaces */
    --border-color: #7e5e5d;         /* Soft rose-toned border for dark */
    --highlight-color: #fde3e2;      /* Hover / focus highlight */
    --shadow-color: #3d160ab8;  /* Darker shadow for depth */
    --rich-background: #1a0e11;      /* Very dark rich background */
    --rich-background-secondary: rgb(56 26 33 / 85%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}
 
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}
/* Header Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}
 
/* Responsive Adjustments */
@media (max-width: 992px) {
    .logo {
        font-size: 1.2rem;
        margin-left: 1rem;
    }
    
    .logo-img {
        height: 35px;
    }
}
.nav-container{
    display: flex;
    align-items: center;
 }
/* Theme Toggle */
.theme-toggle {
    position: relative;
    margin-left: 1.5rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.theme-checkbox {
    opacity: 0;
    position: absolute;
    height: 0;
    width: 0;
    visibility: hidden;
    overflow: hidden;
}

.theme-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--secondary-bg);
    border-radius: 50px;
    padding: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0px 0px 6px 3px var(--shadow-color);
}

.theme-label i {
    font-size: 0.9rem;
    z-index: 1;
}

.theme-label .fa-moon {
    color: #f1c40f; 
}

.theme-label .fa-sun {
    color: #f39c12;
    text-shadow:0px 0px 1rem var(--light-bg);
}
 
.theme-ball {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 0;
}

.theme-checkbox:checked + .theme-label .theme-ball {
    transform: translateX(24px);
    background: var(--primary-color);
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    background: var(--light-bg);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
}

header .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 992px) {
    header .container {
        padding: 0.8rem 2rem;
    }
    
    .theme-toggle {
        order: 3;
        margin-left: auto;
        margin-right: 1rem;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
        padding: 0.8rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1.5rem 0;
        box-shadow: 0 4px 15px var(--shadow-color);
        z-index: 999;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        gap: 0;
    }

    .nav-links.active {
        transform: translateY(0);
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
        margin: 0;
        transition: background-color 0.2s ease;
    }
    
    .nav-links li:hover {
        background-color: #f8f9fa;
    }
    
    .nav-links a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }

    .nav-links a:hover {
        background: var(--light-bg);
        border-radius: 5px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    header {
        padding: 1rem 2%;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px var(--shadow-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }

    .nav-links a:hover {
        background: var(--light-bg);
        border-radius: 5px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    flex-direction: column;
}
.hero-img{
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero-bg.webp') ,url('images/hero-bg.jpeg');
    background-size: cover;
    background-position: center; 
    position: fixed;
    top: 0;
    z-index: -1;
    width: 100%;
}

 
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
    padding: 6rem 0rem;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #2980b9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.feature i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.feature:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

 
/* Services Section */
.services {
    padding: 5rem 5%;
    background: var(--light-bg);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 1rem;
    color: var(--accent-color); 
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--secondary-bg);
    position: relative;
    overflow: hidden;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.projects h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.project-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 150px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.tab-btn:hover i {
    transform: translateY(-1px);
}

.tab-btn.active i {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 50px;
}

.tab-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.tab-btn:hover::before {
    width: 100%;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.tab-btn.active::before {
    width: 100%;
}

.project-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    display: block;
}

/* Project Card Styles */
.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.project-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-carousel img {
    transform: scale(1.03);
}

.project-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    margin: 0 0 0.75rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.project-card p {
    color: #555; 
    line-height: 1.6;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 123, 255, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
}

.project-link:hover i {
    transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-tabs {
        gap: 0.75rem;
    }
    
    .tab-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        min-width: 130px;
    }
}

@media (max-width: 768px) {
    .project-card h3 {
        font-size: 1.1rem;
    }
    
    .project-card p {
        font-size: 0.9rem;
    }
    
    .project-category {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .project-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .tab-btn {
        width: 100%;
        margin: 0;
    }
    
    .project-content {
        padding: 0 1rem;
    }
    section{
        padding: 6rem 0;
    }
}

/* Project Grid Layout */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive Project Grid */
@media (min-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 3rem;
        padding: 0 2rem;
    }
}

/* Center the project content */
.project-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .project-content {
        padding: 0 2rem;
    }
}

/* Keep the original 3 and 4 column layouts for reference
   but commented out since we want max 2 columns
   
@media (min-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
}
*/

/* Adjust project card size for better two-column layout */
@media (min-width: 768px) {
    .project-card {
        margin: 0 auto;
        max-width: 500px;
    }
}

/* Project Card Styles */
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Project Carousel Styles */
.project-carousel {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    margin: 0 auto;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url("images/project1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    opacity: 0.9;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background: white;
}

.carousel-dot:focus {
    outline: none;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
    line-height: 1;
    outline: none;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* Ensure buttons are visible */
.project-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: white;
}

.project-card h3 {
    padding: 1rem;
    color: var(--primary-color);
}

.project-card p {
    padding: 0 1rem 1rem;
    color: var(--text-color);
}

/* About Section */
.about {
    padding: 6rem 5%;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.05) 0%, rgba(0, 86, 179, 0.05) 100%);
    z-index: 0;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    align-items: center;
}

.about-text {
    position: relative;
    padding-right: 2rem;
}

.about-text h3 {
    color: var(--primary-color);
    margin: 2rem 0 1.5rem;
    font-size: 1.75rem;
    position: relative;
    display: inline-block;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.about-text ul li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    margin-bottom: 0.75rem;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.6;
}

.about-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    font-weight: bold;
    width: 24px;
    height: 24px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.stat {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.stat p {
    color: #666;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design for About Section */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .about h2 {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.stat h3 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background-color: var(--light-bg);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    align-items: flex-start;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.about-text h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.about-text ul {
    list-style-position: inside;
    margin: 1rem 0;
    padding-left: 1rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.stat {
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.stat h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .about-content {
        flex-wrap: nowrap;
    }
    
    .about-stats {
        margin-top: 0;
        max-width: 400px;
    }
}

@media (max-width: 767px) {
    
    .about-text {
        min-width: 100%;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* ======================
   Scroll Animations (Optimized)
   ====================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for child elements */
.animate-on-scroll.animate .service-card,
.animate-on-scroll.animate .project-card,
.animate-on-scroll.animate .team-member {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Add staggered delays */
.animate-on-scroll.animate .service-card:nth-child(1),
.animate-on-scroll.animate .project-card:nth-child(1),
.animate-on-scroll.animate .team-member:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-on-scroll.animate .service-card:nth-child(2),
.animate-on-scroll.animate .project-card:nth-child(2),
.animate-on-scroll.animate .team-member:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-on-scroll.animate .service-card:nth-child(3),
.animate-on-scroll.animate .project-card:nth-child(3),
.animate-on-scroll.animate .team-member:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-on-scroll.animate .service-card:nth-child(4),
.animate-on-scroll.animate .project-card:nth-child(4),
.animate-on-scroll.animate .team-member:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optimize animations for mobile */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
        animation: none;
    }
}

/* ======================
   Contact Section
   ====================== */
.contact {
    padding: 6rem 0;
    background: var(--secondary-bg);
    position: relative;
    overflow: hidden;
}

.contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.section-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
}

.contact-form-container {
    padding: 3rem;
    height: 750px;
    }

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

.required {
    color: #ff4d4f;
    margin-left: 2px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 1rem;
    z-index: 1;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 15px;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--shadow-color);
    background-color: white;
}
 
.full-width {
    grid-column: 1 / -1;
} 

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
    z-index: -1;
}

.submit-btn:hover::before {
    width: 100%;
}

.submit-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(3px);
}

/* Contact Details */
.contact-details {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);

}

 

.contact-card {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    padding-bottom: 1rem;
}

.contact-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.contact-card > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-method:hover .icon-box {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.icon-box i {
    font-size: 1.1rem;
    color: white;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: white;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.2rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}
 
/* Form Notifications */
.form-notification {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideIn 0.3s ease-out forwards;
}

.form-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.form-notification.success {
    background: #4caf50;
}

.form-notification.error {
    background: #f44336;
}

.form-notification.info {
    background: #2196f3;
}

.form-notification.warning {
    background: #ff9800;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input States */
.input-group.focused {
    box-shadow: 0 0 0 3px var(--shadow-color);
}

.input-group.has-value input,
.input-group.has-value textarea {
    background-color: white;
    border-color: var(--accent-color);
}

/* Loading State for Submit Button */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 2.5rem; 
    }
    
    .contact-details {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .contact-form-container,
    .contact-details {
        padding: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form-container,
    .contact-details {
        padding: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Footer */
footer {
    background: var(--rich-background);
    color: #e2e8f0;
    padding: 5rem 5% 0;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    margin-bottom: 2rem;
}

/* Footer Logo Styles */
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #a0c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.05);
}

.footer-section:first-child {
    grid-column: 1 / -1;
    max-width: 500px;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.75rem;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 3px;
}

.footer-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section ul li::before {
    content: '→';
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-section ul li:hover::before {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.75rem;
    align-items: center;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 10px 20px var(--shadow-color);
}

.social-links a:hover::before {
    opacity: 1;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    color: #94a3b8;
    line-height: 1.6;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.footer-section.important-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-size: 0.95rem;
}

.footer-section.important-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-section.important-links a:hover {
    color: var(--accent-color);
    padding-left: 0;
}

.footer-section.important-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #94a3b8;
    background: var(--rich-background-secondary);
    backdrop-filter: blur(10px);
}

.footer-bottom a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
    position: relative;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

.footer-bottom a:hover::after {
    width: 100%;
}

/* ======================
   Services Section
   ====================== */
.services {
    padding: 6rem 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.05) 0%, rgba(0, 86, 179, 0.05) 100%);
    z-index: 0;
}

.services .container {
    max-width: 1400px;
    padding: 0 2rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 1600px) {
    .services .container {
        padding: 0 4rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-description {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin: 0 auto 6rem;
    max-width: 1400px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px var(--shadow-color);
    border: 1px solid  var(--light-bg);
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px var(--shadow-color), 0 10px 10px -5px var(--shadow-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--accent-color);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.icon-bg {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.service-card:hover .icon-bg {
    width: 80px;
    height: 80px;
    background:  var(--surface-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    transition: color 0.3s ease;
}

.service-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: baseline;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    overflow: hidden;
}

.service-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: #0056b3;
}

.service-link:hover i {
    transform: translateX(4px);
}

.service-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    border-radius: 12px;
}

.service-card:hover .service-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.overlay-content {
    text-align: left;
    color: white;
}

.overlay-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.overlay-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.overlay-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay-content ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.overlay-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: white;
    font-weight: bold;
}

.cta-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 12px;
    padding: 3rem 4rem;
    color: white;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cta-section:hover::before {
    opacity: 1;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--accent-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.cta-button i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-color);
    color: var(--primary-color);
}

.cta-button:hover i {
    transform: translateX(5px);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, white, #f0f9ff, white);
    background-size: 200% 100%;
    z-index: -1;
    transition: background-position 0.5s ease;
}

.cta-button:hover::before {
    background-position: 100% 0;
}

/* ======================
   Responsive Design
   ====================== */

/* Large devices (desktops, 1200px and up) */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 2%;
    }
    
    .hero-content {
        padding: 4em 0;
    }
}

/* Medium devices (tablets, 992px and down) */
@media (max-width: 1200px) {
    .services {
        padding: 6rem 0;
    }
    
    .services-grid {
        gap: 2rem;
        padding: 0 1.5rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    
    .service-card {
        padding: 2.5rem 1.75rem;
    }
}

/* Small devices */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        padding: 0 1.25rem;
    }
    
    .service-card {
        padding: 2.25rem 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    
    .services-grid {
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 2rem 1.25rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-form, .contact-info {
        width: 100%;
        max-width: 100%;
    }
}

/* Small devices (landscape phones, 768px and down) */
@media (max-width: 768px) {
    /* Header & Navigation */
    .hamburger {
        display: flex; 
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px var(--shadow-color);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .nav-links a {
        padding: 0.75rem 2rem;
        display: block;
    }
    
    /* Hero Section */
    .hero {
        padding: 8rem 0 6rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.25rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Projects */
    .project-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    /* About */
    .about-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        margin: 0.5rem 0;
    }
    
    
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr; 
        gap: 2.5rem;
    }
    
    .footer-section:first-child {
        grid-column: auto;
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
  
    
    .footer-bottom p {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
    
    .footer-section {
        padding: 0 1rem;
        margin: 1.5rem 0;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .social-links {
        justify-content: center;
    }
   
    .footer-bottom {
        margin-top: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--text-color);
        margin: 5px 0;
        transition: 0.3s;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

section {
    animation: fadeIn 1s ease-out;
}
.iframe-container {
    position: relative;
    width: 100%;
    height: 100%; /* or specify a fixed height if needed */
    overflow: hidden;
  }
  
  .iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  
.d-none{
    display: none;
}
