/* =========================================== */
/* BASE STYLES */
/* =========================================== */
:root {
    --primary: #6c63ff;
    --secondary: #4d44db;
    --dark: #2f2e41;
    --light: #f8f9fa;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #fd7e14;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    color: var(--dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    transition: all 0.3s ease;
    line-height: 1.6;
}

/* Font size adjustments for different screens */
@media (max-width: 600px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 901px) {
    html {
        font-size: 16px;
    }
}

/* Dark theme */
.dark-theme body {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    color: #fff;
}

/* Background animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(108, 99, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(108, 99, 255, 0.1) 0%, transparent 20%);
    z-index: -1;
    animation: floatBackground 20s linear infinite alternate;
}

@keyframes floatBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(5%, 5%);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

/* Section header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.dark-theme .section-header p {
    color: rgba(112, 109, 109, 0.7);
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* =========================================== */
/* COMPONENTS */
/* =========================================== */

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.dark-theme .preloader {
    background: #121212;
}

.loader svg {
    width: 100px;
    height: 100px;
}

.loader circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: dash 2s ease-in-out infinite, rotate 2s linear infinite;
    transform-origin: center center;
}

@keyframes dash {
    0% {
        stroke-dashoffset: 200;
    }
    50% {
        stroke-dashoffset: 0;
        stroke-width: 4;
    }
    100% {
        stroke-dashoffset: -200;
        stroke-width: 2;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile optimized preloader */
@media (max-width: 768px) {
    .loader svg {
        width: 80px;
        height: 80px;
    }
    
    .loader circle {
        animation: dash-mobile 2s ease-in-out infinite, rotate 2s linear infinite;
    }
    
    @keyframes dash-mobile {
        0% { stroke-dashoffset: 150; }
        100% { stroke-dashoffset: -150; }
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 999;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dark-theme .navbar {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-theme .navbar.scrolled {
    background: rgba(30, 30, 30, 0.98);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo span {
    color: var(--primary);
}

.dark-theme .logo {
    color: #fff;
}

.logo:hover {
    color: var(--primary);
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
}

.dark-theme .nav-links a {
    color: #fff;
}

/* Hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1000;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger .line {
    width: 100%;
    height: 2px;
    background: var(--dark);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.dark-theme .hamburger .line {
    background: #fff;
}

.hamburger .line:nth-child(1) {
    top: 0;
}

.hamburger .line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger .line:nth-child(3) {
    bottom: 0;
}

.hamburger.active .line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--dark);
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

.dark-theme .theme-toggle svg {
    stroke: #fff;
    fill: #fff;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 998;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .dark-theme .nav-links {
        background: #1e1e1e;
    }
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    order: 1;
}

.hero-image {
    order: 2;
    max-width: 350px;
    margin: 0 auto;
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-title span.txt-rotate {
    color: var(--primary);
    position: relative;
}

.hero-title span.txt-rotate::after {
    content: "|";
    position: absolute;
    right: -10px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    max-width: 500px;
}

.dark-theme .hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hero image */
.floating-img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.hero-image img:hover {
    transform: scale(1.02) translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Scroll down indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
    width: 30px;
}

.scroll-down span {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
    animation: scrollDown 2s infinite;
    opacity: 0;
}

.scroll-down span:nth-of-type(1) {
    animation-delay: 0s;
}

.scroll-down span:nth-of-type(2) {
    top: 16px;
    animation-delay: 0.3s;
}

.scroll-down span:nth-of-type(3) {
    top: 32px;
    animation-delay: 0.6s;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translate(0, 0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(-45deg) translate(-20px, 20px);
    }
}

/* Desktop layout */
@media (min-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 2;
        margin: 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 280px;
        order: 2;
    }
    
    .scroll-down {
        display: none;
    }
}

/* Landscape orientation */
@media screen and (orientation: landscape) and (max-width: 900px) {
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        max-width: 250px;
    }
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.dark-theme .service-card {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transition: all 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-card .card-icon {
    width: 70px;
    height: 70px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-card .card-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary);
    stroke: none;
}

.service-card:hover .card-icon svg {
    stroke: #fff;
    animation: pulse 0.5s ease;
    fill: #fff;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.service-card h3 {
    font-size: 1.375rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.dark-theme .service-card p {
    color: rgba(255, 255, 255, 0.7);
}

.service-card:hover h3,
.service-card:hover p {
    color: #fff;
}

.card-hover-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.service-card:hover .card-hover-content {
    max-height: 200px;
}

.card-hover-content ul {
    list-style: none;
    padding-left: 0;
}

.card-hover-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.card-hover-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* Responsive grid */
@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .service-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .card-icon svg {
        width: 25px;
        height: 25px;
    }
}

/* Portfolio section */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(1);
}

.dark-theme .filter-btn {
    border-color: #444;
    color: #fff;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.filter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

.filter-btn.active {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
}

.dark-theme .portfolio-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 15px;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(77, 68, 219, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    color: #fff;
    font-size: 1.375rem;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.portfolio-link {
    display: inline-block;
    padding: 8px 25px;
    background: #fff;
    color: var(--primary);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: var(--dark);
    color: #fff;
}

.dark-theme .portfolio-link:hover {
    background: #000;
}

/* Responsive grid */
@media (min-width: 576px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .portfolio-img {
        height: 200px;
    }
    
    .portfolio-info {
        padding: 15px;
    }
    
    .portfolio-info h3 {
        font-size: 1.25rem;
    }
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.dark-theme .image-container {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 20px;
}

.about-image:hover .main-image {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.4);
    transform: rotate(5deg);
    transition: all 0.3s ease;
    z-index: 2;
    min-width: 120px;
}

.about-image:hover .experience-badge {
    transform: rotate(0) scale(1.05);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.5);
}

.years {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.text {
    font-size: 1rem;
    display: block;
    font-weight: 500;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.dark-theme .about-text p {
    color: rgba(255, 255, 255, 0.7);
}

.skills {
    margin-bottom: 40px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-info span:first-child {
    font-weight: 500;
}

.skill-info span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.dark-theme .progress-bar {
    background: #333;
}

.progress {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    position: relative;
    transition: width 1.5s ease;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.about-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.download-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-cv svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: transform 0.3s ease;
}

.download-cv:hover svg {
    transform: translateY(3px);
}

/* Clients slider */
.clients-slider {
    text-align: center;
    margin-top: 80px;
}

.clients-slider h4 {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.dark-theme .clients-slider h4 {
    color: rgba(255, 255, 255, 0.7);
}

.clients-slider h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.client-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.client-logos img {
    height: 40px;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.dark-theme .client-logos img {
    filter: grayscale(100%) brightness(2);
}

.client-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.dark-theme .client-logos img:hover {
    filter: grayscale(0%) brightness(1);
}

/* Desktop layout */
@media (min-width: 992px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-image {
        margin: 0;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .about-content {
        gap: 30px;
    }
    
    .experience-badge {
        padding: 20px;
        min-width: 100px;
        transform: rotate(3deg);
    }
    
    .years {
        font-size: 2rem;
    }
    
    .text {
        font-size: 0.9rem;
    }
    
    .client-logos {
        gap: 20px;
    }
    
    .client-logos img {
        height: 30px;
    }
}

/* Contact section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    order: 2;
}

.contact-form {
    order: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.info-text h3 {
    font-size: 1.125rem;
    margin-bottom: 5px;
}

.info-text p {
    color: #666;
}

.dark-theme .info-text p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form {
    position: relative;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--dark);
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    background: transparent;
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
    color: #fff;
    border-bottom-color: #444;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.dark-theme .form-group label {
    color: #777;
}

.form-group .line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.875rem;
    color: var(--primary);
}

.form-group input:focus ~ .line,
.form-group textarea:focus ~ .line {
    width: 100%;
}

.contact-form button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
}

.contact-form button svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transform: translateX(-5px);
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--secondary);
    padding-right: 25px;
    padding-left: 35px;
}

.contact-form button:hover svg {
    transform: translateX(0);
    opacity: 1;
}

/* Desktop layout */
@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-info {
        order: 1;
    }
    
    .contact-form {
        order: 2;
    }
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .contact-content {
        gap: 30px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
    }
    
    .info-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(108, 99, 255, 0.02) 100%);
    padding: 100px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.2), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    position: relative;
}

.footer-logo {
    max-width: 400px;
}

.footer-logo .logo {
    font-size: 2.2rem;
    margin-bottom: 25px;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.footer-logo .logo:hover {
    transform: translateY(-2px);
}

.footer-logo p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.footer-links ul li {
    margin-bottom: 0;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 8px 0;
    font-size: 1.05rem;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-links ul li a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 25px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1.2rem;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.social-icons a:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.social-icons a:hover::before {
    transform: scale(1);
}

.social-icons a i {
    position: relative;
    z-index: 1;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(108, 99, 255, 0.1);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Dark theme footer adjustments */
.dark-theme .footer {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(20, 20, 30, 0.8) 100%);
}

.dark-theme .footer::before {
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.1), transparent);
}

.dark-theme .social-icons a {
    background: rgba(108, 99, 255, 0.05);
}

.dark-theme .footer-bottom {
    border-top-color: rgba(108, 99, 255, 0.1);
}

/* Responsive footer */
@media (max-width: 992px) {
    .footer {
        padding: 80px 0 30px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .footer-logo {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }

    .footer-logo .logo {
        font-size: 2rem;
    }

    .footer-links h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-logo,
    .footer-links,
    .footer-social {
        text-align: center;
    }

    .footer-links ul {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul li a {
        padding: 10px 0;
    }

    .footer-links ul li a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul li a:hover::after {
        width: 50%;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 50px 0 15px;
    }

    .footer-content {
        gap: 35px;
    }

    .footer-logo .logo {
        font-size: 1.8rem;
    }

    .footer-links h3,
    .footer-social h3 {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* =========================================== */
/* UTILITY CLASSES */
/* =========================================== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

/* =========================================== */
/* ANIMATIONS */
/* =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* =========================================== */
/* ACCESSIBILITY */
/* =========================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* =========================================== */
/* PERFORMANCE OPTIMIZATIONS */
/* =========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .preloader {
        display: none !important;
    }
}

.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

/* Image optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive iframes/videos */
iframe, video {
    max-width: 100%;
}

/* Touch feedback styles */
.touch-active {
    transform: scale(0.95) !important;
    opacity: 0.9 !important;
}

/* Larger tap targets for mobile */
@media (max-width: 768px) {
    .btn, .filter-btn, .portfolio-link {
        min-width: 44px;
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .nav-links a {
        padding: 12px 0;
    }
}

/* Dark theme styles */
.dark-theme {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%) !important;
    color: #fff;
}

.dark-theme .navbar {
    background: rgba(30, 30, 30, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-theme .navbar.scrolled {
    background: rgba(30, 30, 30, 0.98) !important;
}

.dark-theme .logo,
.dark-theme .nav-links a {
    color: #fff;
}

.dark-theme .hero-subtitle,
.dark-theme .section-header p,
.dark-theme .info-text p,
.dark-theme .service-card p,
.dark-theme .footer-logo p,
.dark-theme .footer-links a,
.dark-theme .footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.dark-theme .service-card,
.dark-theme .portfolio-item {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-theme .progress-bar {
    background: #333;
}

.dark-theme .client-logos img {
    filter: grayscale(100%) brightness(2);
}

.dark-theme .client-logos img:hover {
    filter: grayscale(0%) brightness(1);
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
    color: #fff;
    border-bottom-color: #444;
}

.dark-theme .form-group label {
    color: #777;
}

.dark-theme .footer {
    background: #1e1e1e;
    color: #fff;
}

.dark-theme .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* =========================================== */
/* PROJECT DETAILS STYLES */
/* =========================================== */

.project-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(108, 99, 255, 0.05) 100%);
    text-align: center;
    margin-bottom: 60px;
}

.dark-theme .project-header {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(20, 20, 30, 0.8) 100%);
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.project-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
}

.dark-theme .project-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.project-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-theme .meta-item {
    background: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.meta-item i {
    font-size: 1.25rem;
    color: var(--primary);
}

.meta-text h4 {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 5px;
}

.dark-theme .meta-text h4 {
    color: rgba(255, 255, 255, 0.7);
}

.meta-text p {
    font-size: 1rem;
    font-weight: 500;
}

.project-section {
    margin: 80px 0;
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-theme .project-section {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.project-section:last-child {
    border-bottom: none;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.project-features {
    margin-top: 40px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.feature-list li {
    margin-bottom: 30px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 15px;
    height: 15px;
    background-color: var(--primary);
    border-radius: 50%;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dark-theme .gallery-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.challenge {
    background: rgba(108, 99, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    border-left: 4px solid var(--primary);
}

.dark-theme .challenge {
    background: rgba(108, 99, 255, 0.1);
}

.challenge h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.dark-theme .tech-item {
    background: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.result-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-theme .result-item {
    background: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.result-label {
    font-size: 1rem;
    color: #666;
}

.dark-theme .result-label {
    color: rgba(255, 255, 255, 0.7);
}

.project-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link.primary {
    background: var(--primary);
    color: white;
}

.project-link.secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.project-link i {
    font-size: 1rem;
}

.project-cta {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(108, 99, 255, 0.05) 100%);
    border-radius: 15px;
    margin: 60px 0;
}

.dark-theme .project-cta {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(20, 20, 30, 0.8) 100%);
}

.project-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.project-cta p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

.dark-theme .project-cta p {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-header {
        padding: 100px 0 40px;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-subtitle {
        font-size: 1.1rem;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .meta-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .project-section {
        margin: 60px 0;
        padding: 30px 0;
    }
    
    .project-cta {
        padding: 60px 0;
    }
    
    .project-cta h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .project-title {
        font-size: 1.75rem;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-link {
        justify-content: center;
    }
}

/* SweetAlert2 Custom Styles */
.swal2-popup-custom {
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 2rem !important;
    font-family: 'Inter', sans-serif !important;
}

.swal2-title-custom {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    color: #333333 !important;
    margin-bottom: 1rem !important;
}

.swal2-html-container-custom {
    font-size: 1rem !important;
    color: #666666 !important;
    line-height: 1.6 !important;
}

.swal2-confirm-custom {
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.swal2-confirm-custom:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Dark theme support */
.dark-theme .swal2-popup-custom {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

.dark-theme .swal2-title-custom {
    color: #ffffff !important;
}

.dark-theme .swal2-html-container-custom {
    color: #cccccc !important;
}

.dark-theme .swal2-confirm-custom {
    background: #8e44ad !important;
}

.dark-theme .swal2-confirm-custom:hover {
    background: #9b59b6 !important;
}

/* Success icon customization */
.swal2-icon.swal2-success {
    border-color: #8e44ad !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: #8e44ad !important;
}

.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long {
    background-color: #8e44ad !important;
}

/* Error icon customization */
.swal2-icon.swal2-error {
    border-color: #c0392b !important;
}

.swal2-icon.swal2-error .swal2-x-mark {
    color: #c0392b !important;
}

/* Animation classes */
.animate__fadeInDown {
    animation-duration: 0.5s !important;
    animation-fill-mode: both !important;
}

.animate__fadeOutUp {
    animation-duration: 0.5s !important;
    animation-fill-mode: both !important;
}
