@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ==================== Variables ==================== */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --dark-color: #2d3038;
    --dark-2: #23262d;
    --light-color: #f8fafc;
    --white: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --bg-main: #3a3d45;
    --bg-card: #454851;
    --bg-nav: rgba(45, 48, 56, 0.95);
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background: #3a3d45;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #3a3d45 0px,
            #3a3d45 3px,
            #2d3038 3px,
            #2d3038 6px
        );
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

section {
    padding: 60px 0;
}

/* ==================== Scroll Progress Bar ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(45, 48, 56, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
    background: rgba(45, 48, 56, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo i {
    font-size: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: #3a3d45;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #3a3d45 0px,
            #3a3d45 3px,
            #2d3038 3px,
            #2d3038 6px
        );
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.03;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

.hero-title {
    font-size: 29px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    min-height: 1.3em;
}

.typing-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    width: 280px;
    min-height: 1.3em;
    text-align: left;
    vertical-align: baseline;
    font-size: 0.85em;
    overflow: hidden;
    white-space: nowrap;
}

.typing-text::after {
    content: '|';
    position: absolute;
    left: -10px;
    top: 0;
    animation: blink 0.7s infinite;
    color: rgba(99, 102, 241, 0.8);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 18px;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-image {
    position: relative;
    animation: fadeInLeft 0.8s ease 0.3s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-container {
    position: relative;
    overflow: visible;
    min-height: 500px;
}

.profile-placeholder {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    position: relative;
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
    background: transparent;
}

.profile-placeholder::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(30deg, rgba(99, 102, 241, 0.15) 12%, transparent 12.5%, transparent 87%, rgba(99, 102, 241, 0.15) 87.5%, rgba(99, 102, 241, 0.15)),
        linear-gradient(150deg, rgba(99, 102, 241, 0.15) 12%, transparent 12.5%, transparent 87%, rgba(99, 102, 241, 0.15) 87.5%, rgba(99, 102, 241, 0.15)),
        linear-gradient(30deg, rgba(99, 102, 241, 0.15) 12%, transparent 12.5%, transparent 87%, rgba(99, 102, 241, 0.15) 87.5%, rgba(99, 102, 241, 0.15)),
        linear-gradient(150deg, rgba(99, 102, 241, 0.15) 12%, transparent 12.5%, transparent 87%, rgba(99, 102, 241, 0.15) 87.5%, rgba(99, 102, 241, 0.15)),
        linear-gradient(60deg, rgba(139, 92, 246, 0.1) 25%, transparent 25.5%, transparent 75%, rgba(139, 92, 246, 0.1) 75%, rgba(139, 92, 246, 0.1)), 
        linear-gradient(60deg, rgba(139, 92, 246, 0.1) 25%, transparent 25.5%, transparent 75%, rgba(139, 92, 246, 0.1) 75%, rgba(139, 92, 246, 0.1));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.4;
    animation: hexMove 40s linear infinite;
}

@keyframes hexMove {
    0% { background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px; }
    100% { background-position: 80px 140px, 80px 140px, 120px 210px, 120px 210px, 80px 140px, 120px 210px; }
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

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

.tech-stack-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.stack-item {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    animation: orbitRotate 15s infinite linear, stackFloat 3s ease-in-out infinite;
    animation-delay: var(--delay), var(--delay);
    transition: all 0.3s ease;
    cursor: pointer;
}

.stack-item:hover {
    transform: scale(1.2) !important;
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 
        0 12px 40px rgba(99, 102, 241, 0.6),
        inset 0 0 30px rgba(99, 102, 241, 0.2);
}

.stack-item:nth-child(1) { transform: rotate(0deg) translateX(150px) rotate(0deg); }
.stack-item:nth-child(2) { transform: rotate(60deg) translateX(150px) rotate(-60deg); }
.stack-item:nth-child(3) { transform: rotate(120deg) translateX(150px) rotate(-120deg); }
.stack-item:nth-child(4) { transform: rotate(180deg) translateX(150px) rotate(-180deg); }
.stack-item:nth-child(5) { transform: rotate(240deg) translateX(150px) rotate(-240deg); }
.stack-item:nth-child(6) { transform: rotate(300deg) translateX(150px) rotate(-300deg); }

.stack-item i {
    font-size: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stack-item span {
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.code-symbol {
    position: absolute;
    font-size: 120px;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    color: white;
    text-shadow: 
        0 0 40px rgba(99, 102, 241, 1),
        0 0 80px rgba(139, 92, 246, 0.8),
        0 0 120px rgba(240, 147, 251, 0.6);
    animation: glitchSymbol 4s infinite;
    z-index: -1;
}

@keyframes orbitRotate {
    0% { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes stackFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glitchSymbol {
    0%, 90%, 100% { 
        text-shadow: 
            0 0 40px rgba(99, 102, 241, 1),
            0 0 80px rgba(139, 92, 246, 0.8),
            0 0 120px rgba(240, 147, 251, 0.6);
        transform: translate(0, 0);
    }
    91% { 
        text-shadow: 
            -5px 0 40px rgba(255, 0, 255, 1),
            5px 0 80px rgba(0, 255, 255, 0.8);
        transform: translate(-2px, 2px);
    }
    93% { 
        text-shadow: 
            5px 0 40px rgba(0, 255, 255, 1),
            -5px 0 80px rgba(255, 0, 255, 0.8);
        transform: translate(2px, -2px);
    }
    95% { 
        text-shadow: 
            0 0 40px rgba(99, 102, 241, 1),
            0 0 80px rgba(139, 92, 246, 0.8);
        transform: translate(0, 0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-card {
    position: absolute;
    background: rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatCard 4s ease-in-out infinite;
    z-index: 10;
    white-space: nowrap;
    min-width: fit-content;
}

.floating-card i {
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-card span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -5%;
    animation-delay: 1s;
}

.card-3 {
    top: 15%;
    right: 5%;
    animation-delay: 2s;
    animation: floatCardCard3 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes floatCardCard3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 1.5s infinite;
}

@keyframes mouseScroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ==================== Section Headers ==================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==================== About Section ==================== */
.about {
    background: #3a3d45;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #3a3d45 0px,
            #3a3d45 3px,
            #2d3038 3px,
            #2d3038 6px
        );
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.image-wrapper {
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-secondary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: white;
    box-shadow: var(--shadow-xl);
}

.stats-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(99, 102, 241, 0.1);
    display: flex;
    gap: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-item i {
    font-size: 20px;
    color: var(--primary-color);
}

.info-item div span {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.info-item div strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-top: 2px;
}

/* ==================== Services Section ==================== */
.services {
    background: #3a3d45;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #3a3d45 0px,
            #3a3d45 3px,
            #2d3038 3px,
            #2d3038 6px
        );
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.service-card {
    background: #454851;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #454851 0px,
            #454851 3px,
            #3a3d45 3px,
            #3a3d45 6px
        );
    padding: 30px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--light-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.service-features i {
    color: var(--primary-color);
    font-size: 12px;
}

/* ==================== Skills Section ==================== */
.skills {
    background: var(--dark-color);
    color: white;
}

.skills .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.skills .section-title,
.skills .section-subtitle {
    color: white;
}

.skills-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-category {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.skill-category i {
    font-size: 20px;
}

.skill-category:hover,
.skill-category.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.skills-list {
    position: relative;
}

.skills-group {
    display: none;
    animation: fadeIn 0.5s ease;
}

.skills-group.active {
    display: block;
}

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

.skill-item {
    margin-bottom: 32px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: white;
    font-size: 16px;
}

.skill-name i {
    font-size: 20px;
    color: var(--accent-color);
}

.skill-percentage {
    font-weight: 700;
    color: var(--accent-color);
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 10px;
    width: var(--progress);
    animation: progressBar 1.5s ease;
}

@keyframes progressBar {
    from { width: 0; }
}

/* ==================== Portfolio Section ==================== */
.portfolio {
    background: #3a3d45;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #3a3d45 0px,
            #3a3d45 3px,
            #2d3038 3px,
            #2d3038 6px
        );
}

.portfolio .container {
    max-width: 1400px;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: #3a3d45;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #3a3d45 0px,
            #3a3d45 3px,
            #2d3038 3px,
            #2d3038 6px
        );
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.portfolio-item {
    background: #454851;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #454851 0px,
            #454851 3px,
            #3a3d45 3px,
            #3a3d45 6px
        );
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16/5;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
    transition: var(--transition);
}

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

.portfolio-content {
    padding: 12px;
}

.portfolio-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    font-size: 9px;
    margin-bottom: 8px;
}

.portfolio-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.portfolio-content p {
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.portfolio-tags span {
    padding: 3px 8px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-secondary);
    font-size: 9px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.portfolio-link:hover {
    gap: 12px;
}

/* ==================== Testimonials Section ==================== */
.testimonials {
    background: #3a3d45;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #3a3d45 0px,
            #3a3d45 3px,
            #2d3038 3px,
            #2d3038 6px
        );
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.testimonial-card {
    background: var(--light-color);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-card.active {
    display: block;
}

.quote-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 24px;
    color: white;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.author-image {
    width: 60px;
    height: 60px;
}

.author-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-info span {
    font-size: 14px;
    color: var(--text-secondary);
}

.rating {
    display: flex;
    justify-content: center;
    gap: 6px;
    color: #f59e0b;
    font-size: 18px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* ==================== Clients Section ==================== */
.clients {
    background: var(--light-color);
    padding: 60px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
}

.client-logo {
    text-align: center;
    font-size: 60px;
    color: var(--text-secondary);
    opacity: 0.4;
    transition: var(--transition);
    cursor: pointer;
}

.client-logo:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ==================== Blog Section ==================== */
.blog {
    background: #3a3d45;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #3a3d45 0px,
            #3a3d45 3px,
            #2d3038 3px,
            #2d3038 6px
        );
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.blog-card {
    background: #454851;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #454851 0px,
            #454851 3px,
            #3a3d45 3px,
            #3a3d45 6px
        );
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image .image-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    transition: var(--transition);
}

.blog-card:hover .blog-image .image-placeholder {
    transform: scale(1.1);
}

.blog-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: var(--gradient-accent);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    font-size: 12px;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.blog-meta i {
    margin-right: 6px;
}

.blog-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
}

/* ==================== Contact Section ==================== */
.contact {
    background: #3a3d45;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #3a3d45 0px,
            #3a3d45 3px,
            #2d3038 3px,
            #2d3038 6px
        );
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.15);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.contact-details h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 15px;
}

.contact-social {
    margin-top: 20px;
}

.contact-social h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-form {
    background: #454851;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #454851 0px,
            #454851 3px,
            #3a3d45 3px,
            #3a3d45 6px
        );
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group i {
    position: absolute;
    right: 18px;
    top: 18px;
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input:focus + i,
.form-group textarea:focus + i {
    color: var(--primary-color);
}

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

#formMessage {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
}

#formMessage.success {
    background: #d1fae5;
    color: #065f46;
}

#formMessage.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ==================== Footer ==================== */
.footer {
    background: #2d3038;
    background-image: 
        repeating-linear-gradient(
            45deg,
            #2d3038 0px,
            #2d3038 3px,
            #23262d 3px,
            #23262d 6px
        );
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 28px;
    color: var(--primary-color);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright i {
    color: #ef4444;
}

/* ==================== Scroll to Top ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .section-title {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 38px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .typing-text {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
    
    .skills-categories {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 77px;
        left: -100%;
        width: 300px;
        height: calc(100vh - 77px);
        background: #2d3038;
        background-image: 
            repeating-linear-gradient(
                45deg,
                #2d3038 0px,
                #2d3038 3px,
                #23262d 3px,
                #23262d 6px
            );
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
    }
    
    .floating-card {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 22px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .typing-text {
        width: 240px;
        font-size: 0.85em;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .hero-subtitle {
        font-size: 11px;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .profile-placeholder {
        height: 350px;
    }
    
    .tech-stack-visual {
        width: 320px;
        height: 320px;
    }
    
    .stack-item {
        width: 70px;
        height: 70px;
    }
    
    .stack-item:nth-child(1) {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }
    
    .stack-item:nth-child(2) {
        transform: rotate(60deg) translateX(120px) rotate(-60deg);
    }
    
    .stack-item:nth-child(3) {
        transform: rotate(120deg) translateX(120px) rotate(-120deg);
    }
    
    .stack-item:nth-child(4) {
        transform: rotate(180deg) translateX(120px) rotate(-180deg);
    }
    
    .stack-item:nth-child(5) {
        transform: rotate(240deg) translateX(120px) rotate(-240deg);
    }
    
    .stack-item:nth-child(6) {
        transform: rotate(300deg) translateX(120px) rotate(-300deg);
    }
    
    @keyframes orbitRotate {
        0% { transform: rotate(0deg) translateX(120px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .stats-box {
        position: static;
        margin-top: 30px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }
    
    .hero .container {
        gap: 30px;
    }
    
    .hero-title {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .typing-text {
        width: 200px;
        font-size: 0.85em;
        white-space: nowrap;
        overflow: hidden;
        line-height: 1.4;
    }
    
    .typing-text::after {
        left: -8px;
        font-size: 24px;
        top: 0;
    }
    
    .hero-subtitle {
        font-size: 11px;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .social-links {
        justify-content: center;
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .hero-image {
        margin-top: 20px;
    }
    
    .profile-placeholder {
        height: 300px;
    }
    
    .tech-stack-visual {
        width: 280px;
        height: 280px;
    }
    
    .stack-item {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .stack-item span {
        font-size: 10px;
    }
    
    .code-symbol {
        font-size: 40px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-indicator .mouse {
        width: 20px;
        height: 32px;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 90px 0 30px;
    }
    
    .hero .container {
        gap: 20px;
        padding: 0 15px;
    }
    
    .hero-content {
        text-align: center;
        padding: 0;
    }
    
    .hero-title {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .typing-text {
        width: 150px;
        font-size: 0.85em;
        white-space: nowrap;
        overflow: hidden;
        line-height: 1.6;
    }
    
    .typing-text::after {
        left: -5px;
        font-size: 18px;
        top: 0;
    }
    
    .hero-subtitle {
        font-size: 9px;
        line-height: 1.8;
        margin-bottom: 20px;
        padding: 0 5px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .social-links {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .hero-image {
        margin-top: 15px;
        order: -1;
    }
    
    .profile-placeholder {
        height: 220px;
        margin: 0 auto;
    }
    
    .tech-stack-visual {
        width: 220px;
        height: 220px;
    }
    
    .stack-item {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .stack-item:nth-child(1) {
        transform: rotate(0deg) translateX(90px) rotate(0deg);
    }
    
    .stack-item:nth-child(2) {
        transform: rotate(60deg) translateX(90px) rotate(-60deg);
    }
    
    .stack-item:nth-child(3) {
        transform: rotate(120deg) translateX(90px) rotate(-120deg);
    }
    
    .stack-item:nth-child(4) {
        transform: rotate(180deg) translateX(90px) rotate(-180deg);
    }
    
    .stack-item:nth-child(5) {
        transform: rotate(240deg) translateX(90px) rotate(-240deg);
    }
    
    .stack-item:nth-child(6) {
        transform: rotate(300deg) translateX(90px) rotate(-300deg);
    }
    
    @keyframes orbitRotate {
        0% { transform: rotate(0deg) translateX(90px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
    }
    
    .stack-item span {
        font-size: 8px;
        margin-top: 3px;
    }
    
    .code-symbol {
        font-size: 28px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .navbar {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo i {
        font-size: 20px;
    }
    
    .nav-menu {
        padding: 20px;
        width: 100%;
        right: -100%;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 12px 0;
    }
    
    section {
        padding: 30px 0;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-info {
        gap: 20px;
    }
    
    .stats-box {
        position: static;
        margin-top: 20px;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .skills-categories {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-item {
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .services-grid,
    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .portfolio-item,
    .blog-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .portfolio-item {
        margin-bottom: 20px;
    }
    
    .portfolio-content {
        padding: 20px 15px;
    }
    
    .testimonials-slider {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .testimonial-card {
        padding: 20px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .blog-grid {
        gap: 20px;
    }
    
    .blog-card {
        width: 100%;
        max-width: 100%;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 20px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .scroll-progress {
        height: 3px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
}

