/* Add responsive root font size for better scaling */
:root {
    font-size: 16px;
    /* Theme variables */
    --bg-color: #080808;
    --text-color: #fff;
    --accent-color: #ff004f;
    --secondary-color: #ababab;
    --card-bg: linear-gradient(145deg, #1c1c1c, #262626);
    --nav-bg: rgba(0, 0, 0, 0.6);
    --footer-bg: #262626;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --input-bg: #262626;
    --input-focus: #333;
    --btn-text: #fff;
    --loader-border: #1a1a1a;
    --overlay-gradient: linear-gradient(rgba(0,0,0,0.7), var(--accent-color));
}

/* Light theme variables - improved for better UI */
.light-theme {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --secondary-color: #6c757d;
    --card-bg: linear-gradient(145deg, #ffffff, #f1f3f5);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #e9ecef;
    --card-shadow: rgba(0, 0, 0, 0.08);
    --input-bg: #f1f3f5;
    --input-focus: #e9ecef;
    --btn-text: #fff;
    --loader-border: #dee2e6;
    --overlay-gradient: linear-gradient(rgba(255,255,255,0.8), var(--accent-color));
}

*{
    margin:0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Adjusted for fixed header */
}

body{
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Logo text styles */
.logo-text {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), text-shadow 0.3s ease;
    margin-left: 20px;
    text-shadow: 0 0 0 rgba(255, 0, 79, 0);
}

.logo-text:hover {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(255, 0, 79, 0.3);
}

/* Theme toggler inside navbar */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggler {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.theme-toggler::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.theme-toggler:hover {
    transform: rotate(30deg);
    box-shadow: 0 0 15px rgba(255, 0, 79, 0.3);
}

.theme-toggler:hover::before {
    transform: scale(1);
}

.theme-toggler i {
    font-size: 20px;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.theme-toggler:hover i {
    color: #fff;
}

.light-theme .theme-toggler {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 0, 79, 0.1);
}

.light-theme .theme-toggler i {
    color: var(--accent-color);
}

.light-theme .logo-text {
    text-shadow: 0 0 15px rgba(255, 0, 79, 0.15);
}

/* Accessibility improvements */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Main spacing */
main {
    flex: 1;
}

.section-padding {
    padding: 60px 0; /* Reduced from 80px */
}

/* Improved header section */
#header {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(image/bg.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.light-theme #header {
    background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.7)), url(image/bg.jpg);
    box-shadow: inset 0 -100px 100px -100px rgba(0,0,0,0.1);
}

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

/* Enhanced navbar styling */
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px 20px;
    background-color: var(--nav-bg);
    border-radius: 12px;
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: calc(80% + 40px);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease, transform 0.4s ease;
}

nav.scrolled {
    background-color: var(--nav-bg);
    padding: 10px 20px;
    transform: translateY(-5px);
}

.light-theme nav {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

nav ul{
    margin-right: 20px;
    transition: right 0.5s ease;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: var(--text-color); 
    text-decoration: none;
    font-size: 18px;
    position: relative;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 8px 12px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

nav ul li a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    bottom: -2px;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: left;
    opacity: 0.8;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Active link styling */
nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a.active::after {
    width: 100%;
    opacity: 1;
}

/* Improved header text with better spacing and animation */
.header-text {
    margin-top: 0;
    font-size: 1.8rem;
    animation: fadeIn 1.5s ease-out;
    position: relative;
    z-index: 2;
}

.header-text p {
    position: relative;
    display: inline-block;
    font-weight: 500;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.header-text p::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform-origin: left;
    transform: scaleX(1);
}

.header-text h1 {
    font-size: 3.5rem;
    margin-top: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.header-text h1 span{
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.header-text h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    animation: underline 1.5s forwards ease-in-out;
    transform-origin: left;
}

@keyframes underline {
    to {
        transform: scaleX(1);
    }
}

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

/*---------------------About---------------*/
#about{
    padding: 40px 0; /* Reduced from 80px to fix excess gap */
    color: var(--secondary-color);
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.about-col-1{
   flex-basis: 35%;
   min-width: 300px;
}

.about-col-1 img{
    width: 100%;
    border-radius: 15px; 
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-col-1 img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.light-theme .about-col-1 img:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-col-2{
    flex-basis: 60%;
    min-width: 300px;
}

.sub-title{
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.sub-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    bottom: -10px;
}

.tab-titles{
    display: flex;
    margin: 30px 0 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-links{
    margin-right: 30px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 8px 5px;
    transition: color 0.3s;
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-family: 'poppins', sans-serif;
    text-align: left;
}

.tab-links:hover {
    color: var(--accent-color);
}

.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    bottom: 0px;
    transition: width 0.5s;
}

.tab-links.active-link {
    color: var(--accent-color);
}

.tab-links.active-link::after{
    width: 50%;
}

.tab-contents ul li{
    list-style: none;
    margin: 15px 0;
}

.tab-contents ul li span{
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.tab-contents{
    display: none;
    transition: all 0.5s ease;
}

.tab-contents.active-tab{
    display: block;
    animation: fadeIn 0.6s ease;
}

/*-------------------services---------------*/
#services{
    padding: 60px 0;
}

.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.service-card{
    background: var(--card-bg);
    padding: 40px;
    font-size: 15px;
    font-weight: 300;
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px var(--card-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-origin: center bottom;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #b50840 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px var(--card-shadow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card i{
    font-size: 50px;
    margin-bottom: 30px;
    color: var(--accent-color);
    transition: color 0.5s;
}

.service-card:hover i {
    color: #fff;
}

.service-card h3{
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
    transition: color 0.5s;
}

.service-link{
    text-decoration: none;
    color: var(--accent-color);
    font-size: 14px;
    margin-top: auto;
    padding: 8px 0;
    position: relative;
    transition: color 0.5s;
    display: inline-block;
    align-self: flex-start;
}

.service-link::after {
    content: '';
    width: 0;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

.service-card:hover .service-link {
    color: #fff;
}

.service-card:hover .service-link::after {
    width: 100%;
}

.light-theme .service-card {
    border: 1px solid rgba(0,0,0,0.05);
}

.light-theme .service-card:hover {
    color: #fff;
}

.light-theme .service-card:hover h3 {
    color: #fff;
}

/*------------------portfolio----------------*/
#portfolio{
    padding: 60px 0;
}

.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work{
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 4/3;
    transform-origin: center bottom;
}

.work:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px var(--card-shadow);
}

.work img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer{
    width: 100%;
    height: 0;
    background: var(--overlay-gradient);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.light-theme .layer {
    color: #fff;
}

.layer h3{
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 20px;
}

.layer p {
    margin-bottom: 25px;
    line-height: 1.6;
}

.layer a{
    margin-top: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.layer a:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer{
    height: 100%;
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    justify-content: center;
    border: 1px solid var(--accent-color);
    padding: 14px 50px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--btn-text);
    font-weight: 500;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.4s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), #b50840);
    transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 0, 79, 0.3);
}

.btn:hover::before {
    left: 0;
}

/*---------------contact--------*/
#contact {
    padding: 60px 0;
}

.contact-left{
    flex-basis: 35%;
    min-width: 300px;
}

.contact-right{
    flex-basis: 60%;
    min-width: 300px;
}

.contact-left p{
    margin-top: 30px;
    font-size: 16px;
}

.contact-left p i{
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 20px;
}

.contact-left p a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-left p a:hover {
    color: var(--accent-color);
}

.social-icons{
    margin-top: 30px;
}

.social-icons a{
    text-decoration: none;
    font-size: 30px; 
    margin-right: 15px;
    color: var(--secondary-color);
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.light-theme .social-icons a {
    background: rgba(0, 0, 0, 0.05);
}

.social-icons a:hover{
    color: #fff;
    background: var(--accent-color);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 0, 79, 0.3);
} 

.btn.btn2{
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #b50840);
    margin: 30px 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn.btn2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

.btn.btn2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 0, 79, 0.4);
}

.btn.btn2:hover::after {
    transform: translateY(0);
}

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

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: var(--input-bg);
    padding: 15px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.light-theme form input, 
.light-theme form textarea {
    border: 1px solid rgba(0,0,0,0.1);
}

form input:focus, form textarea:focus {
    box-shadow: 0 0 15px rgba(255, 0, 79, 0.25), inset 0 2px 5px rgba(0, 0, 0, 0.05);
    background: var(--input-focus);
    transform: translateY(-2px);
}

form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
    border: none;
}

.form-status {
    margin-top: 15px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    height: 0;
}

.form-status.success {
    color: #4CAF50;
    opacity: 1;
    height: auto;
}

.form-status.error {
    color: #f44336;
    opacity: 1;
    height: auto;
}

footer.copyright{
    width: 100%;
    text-align: center;
    padding: 25px;
    background-color: var(--footer-bg);
    font-weight: 300;
    margin-top: 20px;
}

.copyright i{
    color: var(--accent-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Improved back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #b50840);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.back-to-top:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 0, 79, 0.4);
}

/*--------------------css for media query--------------*/
/* Hide menu icons by default */
.fas.fa-bars, .fas.fa-times {
    display: none;
}

/* Position close button properly */
nav ul .fas.fa-times {
    position: absolute !important;
    top: 25px !important;
    left: 25px !important;
}

/* Large Desktop Styles */
@media only screen and (min-width: 1680px) {
    .container {
        max-width: 1600px;
    }
    
    #header {
        background-position: center;
        background-size: cover;
    }
    
    .header-text {
        margin-top: 0;
        max-width: 80%;
    }
    
    .header-text h1 {
        font-size: 4.5rem;
        line-height: 1.2;
    }
    
    .header-text p {
        font-size: 2rem;
    }
    
    .services-list {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 40px;
    }
    
    .about-col-1 img {
        max-height: 600px;
        object-fit: cover;
    }
}

/* Desktop Styles */
@media only screen and (min-width: 1200px) and (max-width: 1679px) {
    .container {
        max-width: 1140px;
        padding: 10px 6%;
    }
    
    nav {
        max-width: calc(88% + 40px);
    }
}

/* Tablet Landscape Styles */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 10px 5%;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .sub-title {
        font-size: 2.2rem;
    }
    
    .header-text h1 {
        font-size: 3rem;
    }
    
    nav {
        max-width: calc(90% + 40px);
    }
    
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    }
}

/* Tablet Portrait Styles */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .container {
        padding: 10px 5%;
    }
    
    .logo-text {
        font-size: 1.6rem;
        margin-left: 10px;
    }
    
    .theme-toggler {
        width: 32px;
        height: 32px;
    }
    
    .sub-title {
        font-size: 2rem;
    }
    
    .header-text {
        font-size: 1.6rem;
    }
    
    .header-text h1 {
        font-size: 2.8rem;
    }
    
    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }
    
    .about-col-1 {
        margin-bottom: 30px;
        max-width: 450px;
        margin: 0 auto 30px;
    }
    
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-gap: 30px;
    }
    
    nav {
        max-width: calc(90% + 40px);
    }
    
    nav ul li {
        margin: 10px 15px;
    }
    
    nav ul li a {
        font-size: 16px;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .service-card i {
        font-size: 40px;
    }
    
    .service-card h3 {
        font-size: 24px;
    }
    
    .work-list {
        grid-gap: 25px;
    }
    
    .layer h3 {
        font-size: 20px;
    }
}

/* Large Mobile Styles */
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .container {
        padding: 10px 5%;
    }
    
    #header {
        height: 100vh;
        background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(image/phonesize.jpg);
    }
    
    .light-theme #header {
        background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.7)), url(image/phonesize.jpg);
    }
    
    .header-text {
        margin-top: 50%;
        font-size: 16px;
    }
    
    .header-text h1 {
        font-size: 28px;
    }
    
    .sub-title {
        font-size: 1.8rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
        margin-left: 5px;
    }
    
    /* Fix About section image loading */
    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }
    
    .about-col-1 {
        margin-bottom: 30px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .about-col-1 picture {
        display: block;
        width: 100%;
        height: auto;
    }
    
    .about-col-1 img {
        width: 100%;
        height: auto;
        border-radius: 15px;
        object-fit: cover;
        display: block;
        box-shadow: 0 5px 15px var(--card-shadow);
    }
    
    .nav-right {
        gap: 15px;
    }
    
    .theme-toggler {
        width: 32px;
        height: 32px;
    }
    
    .theme-toggler i {
        font-size: 16px;
    }
    
    /* Mobile menu icon */
    .fas.fa-bars {
        display: inline-block;
        font-size: 25px;
        color: var(--text-color);
        cursor: pointer;
        z-index: 200;
    }
    
    .fas.fa-times {
        display: block;
        font-size: 22px;
        color: #fff;
        cursor: pointer;
        z-index: 1000;
    }
    
    /* Adjust nav for mobile */
    nav {
        padding: 10px 15px;
        position: fixed;
        top: 0;
        max-width: 100%;
        border-radius: 0;
        background-color: var(--nav-bg);
    }
    
    /* Mobile menu styling */
    nav ul {
        background: linear-gradient(135deg, var(--accent-color) 0%, #b50840 100%);
        position: fixed;
        top: 0;
        right: -200px; /* Hide menu off-screen initially */
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 999;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        margin-right: 0;
    }
    
    /* Vertical menu items */
    nav ul li {
        display: block;
        margin: 25px;
        text-align: left;
    }
    
    nav ul li a {
        font-size: 20px;
        display: block;
        color: #fff;
    }
    
    nav ul li a::after {
        bottom: -3px;
        height: 2px;
    }
    
    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }
    
    .tab-links {
        margin-right: 20px;
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .contact-left, .contact-right {
        flex-basis: 100%;
    }
    
    .contact-right {
        margin-top: 30px;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .social-icons a {
        font-size: 20px;
        width: 50px;
        height: 50px;
        line-height: 50px;
        margin-right: 10px;
    }
    
    .services-list, .work-list {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}

/* Mobile Styles */
@media only screen and (max-width: 575px) {
    .container {
        padding: 10px 4%;
    }
    
    #header {
        background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(image/phonesize.jpg);
        height: 100vh;
        background-attachment: scroll;
    }
    
    .light-theme #header {
        background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.7)), url(image/phonesize.jpg);
    }
    
    .logo-text {
        font-size: 1.4rem;
        margin-left: 0;
    }
    
    /* Fix for About section image */
    .about-col-1 {
        margin-bottom: 30px;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .about-col-1 picture {
        display: block;
        width: 100%;
        height: auto;
    }
    
    .about-col-1 img {
        width: 100%;
        height: auto;
        border-radius: 15px;
        object-fit: cover;
        display: block;
        box-shadow: 0 5px 15px var(--card-shadow);
    }
    
    .nav-right {
        gap: 10px;
    }
    
    .theme-toggler {
        width: 30px;
        height: 30px;
    }
    
    .theme-toggler i {
        font-size: 14px;
    }
    
    /* Mobile menu icon */
    .fas.fa-bars {
        display: inline-block;
        font-size: 22px;
        color: var(--text-color);
        cursor: pointer;
        z-index: 200;
    }
    
    .fas.fa-times {
        display: block;
        font-size: 22px;
        color: #fff;
        cursor: pointer;
        z-index: 1000;
    }
    
    /* Adjust nav for mobile */
    nav {
        padding: 10px 15px;
        position: fixed;
        top: 0;
        max-width: 100%;
        border-radius: 0;
        background-color: var(--nav-bg);
    }
    
    /* Mobile menu styling */
    nav ul {
        background: linear-gradient(135deg, var(--accent-color) 0%, #b50840 100%);
        position: fixed;
        top: 0;
        right: -200px; /* Hide menu off-screen initially */
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 999;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        margin-right: 0;
    }
    
    /* Vertical menu items */
    nav ul li {
        display: block;
        margin: 25px;
        text-align: left;
    }
    
    nav ul li a {
        font-size: 18px;
        display: block;
        color: #fff;
    }
    
    nav ul li a::after {
        bottom: -3px;
        height: 2px;
    }
    
    .header-text {
        margin-top: 80%;
        font-size: 14px;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 22px;
    }
    
    .sub-title {
        font-size: 1.6rem;
    }
    
    .about-col-1, .about-col-2 {
        flex-basis: 100%;
    }
    
    .about-col-1 {
        margin-bottom: 30px;
    }
    
    .tab-titles {
        flex-direction: column;
        gap: 15px;
    }
    
    .tab-links {
        margin-right: 0;
    }
    
    .services-list, .work-list {
        grid-gap: 25px;
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-card i {
        font-size: 35px;
    }
    
    .service-card h3 {
        font-size: 22px;
    }
    
    .contact-left, .contact-right {
        flex-basis: 100%;
    }
    
    .contact-right {
        margin-top: 30px;
    }
    
    form input, form textarea {
        padding: 12px;
        font-size: 16px;
    }
    
    form .btn2 {
        padding: 12px 30px;
        width: 100%;
        font-size: 16px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }
    
    .social-icons a {
        font-size: 18px;
        width: 45px;
        height: 45px;
        line-height: 45px;
        margin-right: 8px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}

/* Enhanced Typewriter text effect */
.typewriter-text {
    display: inline-block;
    color: var(--accent-color);
    position: relative;
    border-right: 3px solid transparent;
    margin-right: 8px;
    letter-spacing: 0.15em;
    overflow: hidden;
    white-space: nowrap;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: var(--accent-color);
    margin-left: 2px;
    animation: blink-caret 0.75s step-end infinite;
    vertical-align: text-bottom;
    position: relative;
    top: 0.1em;
}

@keyframes blink-caret {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Enhanced section transitions */
section {
    transition: opacity 0.5s ease;
    position: relative;
}

/* Preloader styles with smoother transitions */
.preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.preloader.fade {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid var(--loader-border);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
    transition: opacity 0.4s ease;
}

/* Page transition effects */
body {
    opacity: 0.98;
    transition: background-color 0.5s ease, color 0.5s ease, opacity 0.5s ease;
}

body.content-loaded {
    opacity: 1;
}

/* Enhanced AOS animations */
[data-aos] {
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-aos="custom-fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition-property: opacity, transform;
}

[data-aos="custom-fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Scaling animation for cards on hover */
.service-card, .work {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.5s ease,
                background 0.5s ease;
    will-change: transform, box-shadow;
}

/* Hover lift effect */
.service-card:hover,
.work:hover,
.btn:hover,
.social-icons a:hover {
    transform: translateY(-15px);
}

/* Enhanced tab transitions */
.tab-links {
    position: relative;
    overflow: hidden;
}

.tab-links::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(255, 0, 79, 0.05));
    top: 0;
    left: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 4px;
    z-index: -1;
}

.tab-links:hover::before {
    transform: translateY(0);
}

.tab-links.active-link::before {
    background: linear-gradient(transparent, rgba(255, 0, 79, 0.1));
    transform: translateY(0);
}