﻿:root {
    --primary: #4382DF;
    --primary-dark: #4647AE;
    --dark: #112E81;
    --light-bg: #AACCD6;
    --white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-light: #6B7280;
    --shadow-sm: 0 2px 8px rgba(17, 46, 129, 0.08);
    --shadow-md: 0 8px 25px rgba(17, 46, 129, 0.1);
    --shadow-lg: 0 15px 40px rgba(67, 130, 223, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-full: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f5f7ff 0%, #edf1ff 50%, #f0f4ff 100%);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.loading-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, #1a1a3e 0%, #0a0a1a 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

    .loading-screen.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
    opacity: 0;
}

    .particle:nth-child(1) {
        left: 10%;
        top: 20%;
        animation-delay: 0s;
    }

    .particle:nth-child(2) {
        left: 25%;
        top: 60%;
        animation-delay: 0.4s;
    }

    .particle:nth-child(3) {
        left: 40%;
        top: 30%;
        animation-delay: 0.8s;
    }

    .particle:nth-child(4) {
        left: 55%;
        top: 70%;
        animation-delay: 1.2s;
    }

    .particle:nth-child(5) {
        left: 70%;
        top: 25%;
        animation-delay: 1.6s;
    }

    .particle:nth-child(6) {
        left: 85%;
        top: 55%;
        animation-delay: 2s;
    }

    .particle:nth-child(7) {
        left: 15%;
        top: 80%;
        animation-delay: 0.6s;
    }

    .particle:nth-child(8) {
        left: 60%;
        top: 15%;
        animation-delay: 1s;
    }

    .particle:nth-child(9) {
        left: 80%;
        top: 75%;
        animation-delay: 1.4s;
    }

    .particle:nth-child(10) {
        left: 35%;
        top: 45%;
        animation-delay: 1.8s;
    }

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    20% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
        transform: translateY(-30px) scale(1.5);
    }

    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0);
    }
}

.laptop-wrapper {
    position: relative;
    animation: laptopEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center;
}

@keyframes laptopEntrance {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.6) rotateX(30deg);
    }

    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.02) rotateX(-2deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.laptop-body {
    position: relative;
    width: min(380px, 85vw);
    perspective: 800px;
}

.laptop-display {
    width: 100%;
    height: min(240px, 55vw);
    background: linear-gradient(180deg, #1a1d2e 0%, #0d1117 100%);
    border-radius: 16px 16px 0 0;
    border: 3px solid #2a2d3e;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(67, 130, 223, 0.3), 0 0 120px rgba(70, 71, 174, 0.15), inset 0 0 80px rgba(67, 130, 223, 0.05);
    transform: rotateX(0deg);
    animation: screenGlow 2s ease-in-out infinite;
}

@keyframes screenGlow {
    0%, 100% {
        box-shadow: 0 0 60px rgba(67, 130, 223, 0.3), 0 0 120px rgba(70, 71, 174, 0.15), inset 0 0 80px rgba(67, 130, 223, 0.05);
    }

    50% {
        box-shadow: 0 0 80px rgba(67, 130, 223, 0.5), 0 0 150px rgba(70, 71, 174, 0.25), inset 0 0 100px rgba(67, 130, 223, 0.08);
    }
}

.laptop-camera {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 1px solid #333;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.8);
    z-index: 10;
}

    .laptop-camera::after {
        content: '';
        position: absolute;
        top: 1px;
        left: 1px;
        width: 3px;
        height: 3px;
        background: #ff0000;
        border-radius: 50%;
        opacity: 0.6;
        animation: cameraBlink 2s ease-in-out infinite;
    }

@keyframes cameraBlink {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

.screen-bezel {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(67, 130, 223, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.screen-logo {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 700;
    color: rgba(67, 130, 223, 0.6);
    letter-spacing: 3px;
    opacity: 0;
    animation: logoReveal 1s ease 1.8s forwards;
}

@keyframes logoReveal {
    to {
        opacity: 1;
    }
}

.code-lines {
    padding: 20px 24px;
    font-family: 'Consolas', 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
    color: #AACCD6;
    animation: codeFadeIn 1s ease forwards;
}

@keyframes codeFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.code-lines .line {
    margin-bottom: 10px;
    opacity: 0;
    animation: lineWrite 0.4s ease forwards;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .code-lines .line:nth-child(1) {
        animation-delay: 0.3s;
    }

    .code-lines .line:nth-child(2) {
        animation-delay: 0.6s;
    }

    .code-lines .line:nth-child(3) {
        animation-delay: 0.9s;
    }

    .code-lines .line:nth-child(4) {
        animation-delay: 1.2s;
    }

    .code-lines .line:nth-child(5) {
        animation-delay: 1.5s;
    }

    .code-lines .line:nth-child(6) {
        animation-delay: 1.8s;
    }

@keyframes lineWrite {
    0% {
        opacity: 0;
        transform: translateX(-15px);
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.code-lines .line-number {
    color: #4a4a6a;
    font-size: 11px;
    min-width: 20px;
    text-align: left;
    user-select: none;
}

.code-lines .keyword {
    color: #ff79c6;
}

.code-lines .string {
    color: #50fa7b;
}

.code-lines .class {
    color: #8be9fd;
}

.code-lines .method {
    color: #ffb86c;
}

.code-lines .comment {
    color: #6272a4;
}

.code-lines .variable {
    color: #f1fa8c;
}

.code-lines .cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: #4382DF;
    animation: blinkCursor 0.8s ease infinite;
    margin-right: 2px;
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(67, 130, 223, 0.6);
}

@keyframes blinkCursor {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.laptop-keyboard {
    width: 110%;
    height: 18px;
    background: linear-gradient(180deg, #3a3a4e 0%, #2a2a3a 40%, #1e1e2e 100%);
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    position: relative;
    left: -5%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 8px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    transform: perspective(300px) rotateX(15deg);
    transform-origin: top;
}

    .laptop-keyboard::before {
        content: '';
        position: absolute;
        top: 3px;
        left: 50%;
        transform: translateX(-50%);
        width: 35%;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(67, 130, 223, 0.3), transparent);
        border-radius: 2px;
        animation: keyboardGlow 2s ease-in-out infinite;
    }

@keyframes keyboardGlow {
    0%, 100% {
        opacity: 0.3;
        width: 35%;
    }

    50% {
        opacity: 0.7;
        width: 45%;
    }
}

.laptop-keyboard::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: #3a3a4a;
    border-radius: 2px;
}

.laptop-stand {
    width: 30%;
    height: 6px;
    background: linear-gradient(180deg, #2a2a3a, #1a1a2e);
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.loading-text {
    margin-top: 30px;
    text-align: center;
}

.loading-title {
    color: white;
    font-size: clamp(18px, 3.5vw, 24px);
    font-weight: 900;
    opacity: 0;
    animation: textReveal 0.6s ease 0.5s forwards;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-subtitle {
    color: var(--light-bg);
    font-size: 13px;
    margin-top: 8px;
    opacity: 0;
    animation: textReveal 0.6s ease 0.8s forwards;
}

.loading-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 15px;
}

    .loading-dots span {
        width: 6px;
        height: 6px;
        background: var(--primary);
        border-radius: 50%;
        animation: dotPulse 1.4s ease-in-out infinite;
    }

        .loading-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .loading-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.8);
        opacity: 1;
    }
}

.desk-reflection {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(67, 130, 223, 0.15) 0%, transparent 70%);
    animation: reflectionPulse 3s ease-in-out infinite;
}

@keyframes reflectionPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1.1);
    }
}

.header {
    position: sticky;
    top: 10px;
    z-index: 1000;
    padding: 0 20px;
    margin-bottom: 20px;
}

.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(170, 204, 214, 0.3);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    animation: slideDown 0.6s ease;
    gap: 10px;
    flex-wrap: nowrap;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1002;
    cursor: pointer;
    flex-shrink: 0;
    min-width: fit-content;
}

.logo-image {
    height: 28px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

.logo i {
    color: var(--primary);
    font-size: 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

    .nav-menu a {
        color: var(--text-dark);
        text-decoration: none;
        padding: 8px 16px;
        border-radius: var(--radius-full);
        font-weight: 600;
        font-size: 14px;
        transition: var(--transition);
        white-space: nowrap;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

        .nav-menu a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.3s ease;
            z-index: -1;
            border-radius: var(--radius-full);
        }

        .nav-menu a:hover::before, .nav-menu a.active::before {
            transform: scaleX(1);
        }

        .nav-menu a:hover, .nav-menu a.active {
            color: white;
        }

.social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .social-icons a {
        color: var(--text-dark);
        font-size: 16px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(170, 204, 214, 0.2);
        text-decoration: none;
        transition: var(--transition);
    }

        .social-icons a:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-3px) scale(1.1);
            box-shadow: 0 8px 20px rgba(67, 130, 223, 0.4);
        }

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    transition: var(--transition);
}

    .menu-btn:hover {
        color: var(--primary);
        transform: rotate(90deg);
    }

.hero-section {
    padding: 40px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 15px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.hero-text .subtitle {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .hero-text .subtitle::before {
        content: '';
        width: 30px;
        height: 3px;
        background: var(--primary);
        border-radius: 3px;
        animation: expandWidth 1.5s ease infinite;
    }

@keyframes expandWidth {
    0%, 100% {
        width: 30px;
    }

    50% {
        width: 50px;
    }
}

.hero-description {
    color: var(--text-light);
    margin: 20px 0;
    font-size: 15px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-skills-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

    .hero-skills-list li {
        position: relative;
        padding-right: 22px;
        margin-bottom: 10px;
        color: var(--text-light);
        font-size: 14px;
        line-height: 1.8;
    }

        .hero-skills-list li::before {
            content: '▸';
            position: absolute;
            right: 0;
            top: 0;
            color: var(--primary);
            font-weight: 700;
            font-size: 14px;
        }

.btn {
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 8px 25px rgba(67, 130, 223, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(70, 71, 174, 0.4);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

    .btn-outline:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-3px);
    }

.image-3d-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-3d-container {
    position: relative;
    width: min(320px, 65vw);
    height: min(320px, 65vw);
    animation: float3D 6s ease-in-out infinite;
}

@keyframes float3D {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }

    25% {
        transform: translateY(-15px) rotateY(5deg);
    }

    75% {
        transform: translateY(-15px) rotateY(-5deg);
    }
}

.image-3d {
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(17, 46, 129, 0.3);
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 32% 68% / 58% 32% 68% 42%;
    }

    50% {
        border-radius: 32% 58% 68% 42% / 52% 58% 32% 58%;
    }

    75% {
        border-radius: 42% 58% 32% 68% / 42% 68% 32% 58%;
    }
}

.image-3d-container::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--dark));
    border-radius: inherit;
    z-index: 1;
    animation: morphing 8s ease-in-out infinite, rotateGlow 10s linear infinite;
    opacity: 0.3;
    filter: blur(25px);
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.image-3d-container::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 3px dashed rgba(67, 130, 223, 0.5);
    border-radius: inherit;
    z-index: 1;
    animation: morphing 8s ease-in-out infinite, rotateGlowReverse 15s linear infinite;
}

@keyframes rotateGlowReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

.floating-badges {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    z-index: 3;
    pointer-events: none;
}

.float-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 8px 25px rgba(17, 46, 129, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    animation: floatBadge 5s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(170, 204, 214, 0.4);
    white-space: nowrap;
    color: var(--dark);
}

    .float-badge i {
        font-size: 18px;
        color: #512BD4;
    }

    .float-badge:nth-child(1) {
        top: 0%;
        right: -25px;
        animation-delay: 0s;
    }

    .float-badge:nth-child(2) {
        bottom: 15%;
        left: -35px;
        animation-delay: 1.5s;
    }

    .float-badge:nth-child(3) {
        bottom: 40%;
        right: -30px;
        animation-delay: 3s;
    }

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.skills-section, .services-section, .portfolio-section, .blog-section, .contact-section {
    padding: 60px 0;
}

.services-section, .contact-section {
    background: rgba(170, 204, 214, 0.05);
}

.blog-section {
    background: rgba(67, 130, 223, 0.03);
}

.section-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 15px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.skill-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(170, 204, 214, 0.3);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .skill-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 17px;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    transform: rotate(360deg);
}

.skill-name {
    font-weight: 700;
    font-size: 14px;
}

.skill-percent {
    font-weight: 800;
    color: var(--primary);
    font-size: 15px;
}

.progress {
    width: 100%;
    height: 7px;
    background: rgba(170, 204, 214, 0.4);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    width: 0;
    transition: width 1.8s ease;
    position: relative;
}

    .progress-fill::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 14px;
        height: 14px;
        background: white;
        border-radius: 50%;
        border: 2px solid var(--primary);
        box-shadow: 0 0 10px rgba(67, 130, 223, 0.4);
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(170, 204, 214, 0.3);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .service-card::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), var(--primary-dark));
        transform: translateY(100%);
        transition: transform 0.4s ease;
    }

    .service-card:hover::before {
        transform: translateY(0);
    }

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(67, 130, 223, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 800;
}

.service-card p {
    color: var(--text-light);
    font-size: 13px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

    .service-tags span {
        background: rgba(170, 204, 214, 0.3);
        padding: 4px 10px;
        border-radius: 15px;
        font-size: 11px;
        font-weight: 600;
        color: var(--dark);
    }

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .gallery-item:hover {
        transform: scale(1.03);
        box-shadow: var(--shadow-lg);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 46, 129, 0.85), transparent);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: var(--transition);
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 15px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.blog-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(170, 204, 214, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

    .blog-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }

    .blog-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.blog-body {
    padding: 18px;
}

    .blog-body .blog-meta {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 10px;
        font-size: 12px;
        color: var(--text-light);
    }

        .blog-body .blog-meta i {
            color: var(--primary);
        }

    .blog-body h3 {
        font-size: 17px;
        margin: 8px 0;
        font-weight: 800;
    }

    .blog-body p {
        font-size: 13px;
        color: var(--text-light);
    }

    .blog-body .blog-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 12px 0;
    }

        .blog-body .blog-tags span {
            background: rgba(67, 130, 223, 0.1);
            color: var(--primary);
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 11px;
            font-weight: 600;
        }

    .blog-body .read-more {
        color: var(--primary);
        font-weight: 700;
        text-decoration: none;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .blog-body .read-more i {
            font-size: 12px;
        }

.article-page {
    display: none;
    padding: 40px 0;
    min-height: 100vh;
}

    .article-page.active {
        display: block;
    }

.article-container {
    max-width: 850px;
    margin: 0 auto;
}

.article-hero {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

    .article-hero img {
        width: 100%;
        height: 350px;
        object-fit: cover;
    }

.article-header {
    margin-bottom: 30px;
}

    .article-header .article-meta {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
        margin-bottom: 15px;
        font-size: 14px;
        color: var(--text-light);
    }

        .article-header .article-meta i {
            color: var(--primary);
        }

        .article-header .article-meta .author-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }

    .article-header h1 {
        font-size: clamp(26px, 4vw, 36px);
        font-weight: 900;
        margin-bottom: 15px;
        line-height: 1.4;
    }

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

    .article-tags span {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }

.article-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(170, 204, 214, 0.3);
    line-height: 2;
}

    .article-content h2 {
        font-size: 24px;
        font-weight: 800;
        margin: 30px 0 15px;
        color: var(--dark);
    }

    .article-content h3 {
        font-size: 20px;
        font-weight: 700;
        margin: 25px 0 12px;
        color: var(--primary-dark);
    }

    .article-content p {
        margin-bottom: 18px;
    }

    .article-content code {
        background: rgba(67, 130, 223, 0.1);
        padding: 3px 8px;
        border-radius: 5px;
        font-family: 'Consolas', monospace;
        font-size: 14px;
        color: var(--primary-dark);
    }

    .article-content pre {
        background: #1A1A2E;
        color: #AACCD6;
        padding: 20px;
        border-radius: var(--radius-md);
        overflow-x: auto;
        margin: 20px 0;
        font-size: 14px;
        line-height: 1.6;
    }

        .article-content pre code {
            background: none;
            color: inherit;
            padding: 0;
        }

    .article-content ul, .article-content ol {
        margin: 15px 0;
        padding-right: 25px;
    }

    .article-content li {
        margin-bottom: 8px;
    }

    .article-content blockquote {
        border-right: 4px solid var(--primary);
        background: rgba(67, 130, 223, 0.05);
        padding: 15px 20px;
        border-radius: var(--radius-sm);
        margin: 20px 0;
        font-style: italic;
        color: var(--text-light);
    }

    .article-content figure.table {
        margin: 25px 0;
        overflow-x: auto;
        border-radius: var(--radius-md);
        border: 1px solid #e0e0e0;
    }

    .article-content table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        background: white;
    }

        .article-content table thead {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        }

            .article-content table thead th {
                color: white;
                padding: 14px 16px;
                text-align: right;
                font-weight: 700;
                font-size: 13px;
                border: none;
                white-space: nowrap;
            }

        .article-content table tbody td {
            padding: 12px 16px;
            text-align: right;
            border-bottom: 1px solid #f0f0f0;
            vertical-align: middle;
        }

        .article-content table tbody tr:nth-child(even) td {
            background: #f8faff;
        }

        .article-content table tbody tr:hover td {
            background: #eef2ff;
        }

        .article-content table tbody tr:last-child td {
            border-bottom: none;
        }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

    .back-btn:hover {
        background: var(--primary-dark);
        transform: translateX(-5px);
    }

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
}

.contact-form {
    background: white;
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(170, 204, 214, 0.3);
}

    .contact-form h3 {
        font-size: 20px;
        margin-bottom: 20px;
        font-weight: 800;
    }

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 5px;
        font-size: 13px;
    }

    .form-group input, .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid rgba(170, 204, 214, 0.4);
        border-radius: var(--radius-md);
        font-family: inherit;
        font-size: 14px;
        transition: var(--transition);
        background: #fafbff;
    }

        .form-group input:focus, .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(67, 130, 223, 0.1);
            background: white;
        }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
    }

.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

    .btn-submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(70, 71, 174, 0.4);
    }

.contact-info {
    background: linear-gradient(135deg, var(--primary-dark), var(--dark));
    border-radius: var(--radius-xl);
    padding: 30px;
    color: white;
}

    .contact-info h3 {
        font-size: 20px;
        margin-bottom: 20px;
        font-weight: 800;
    }

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

    .info-item:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(-5px);
    }

    .info-item i {
        font-size: 18px;
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.social-contact {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

    .social-contact a {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 17px;
        text-decoration: none;
        transition: var(--transition);
    }

        .social-contact a:hover {
            background: white;
            color: var(--primary-dark);
            transform: translateY(-5px);
        }

.footer {
    background: linear-gradient(135deg, var(--dark), var(--primary-dark));
    color: white;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 13px;
        cursor: pointer;
    }

        .footer-links a:hover {
            color: white;
        }

.footer-social {
    display: flex;
    gap: 10px;
}

    .footer-social a {
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 17px;
        text-decoration: none;
    }

        .footer-social a:hover {
            background: var(--primary);
        }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 15px;
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
}

.success-msg {
    display: none;
    background: #10B981;
    color: white;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-top: 12px;
    text-align: center;
    font-weight: 600;
}

    .success-msg.show {
        display: block;
    }

.no-scroll {
    overflow: hidden;
    height: 100%;
}

.hidden {
    display: none !important;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

    .mobile-overlay.active {
        display: block;
    }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: white;
    z-index: 1001;
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    overflow-y: auto;
}

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu .close-btn {
        position: absolute;
        top: 20px;
        left: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }

    .mobile-menu a {
        display: block;
        padding: 15px;
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 600;
        border-radius: var(--radius-md);
        margin-bottom: 5px;
    }

        .mobile-menu a:hover, .mobile-menu a.active {
            background: rgba(67, 130, 223, 0.1);
            color: var(--primary);
        }

.mobile-social {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

    .mobile-social a {
        width: 42px;
        height: 42px;
        background: rgba(170, 204, 214, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-dark);
        font-size: 18px;
    }

.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 46, 129, 0.92);
    backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 20px;
}

    .project-modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.project-modal-box {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-close {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(170, 204, 214, 0.5);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

    .project-close:hover {
        background: var(--primary);
        color: white;
    }

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: #f0f0f0;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

    .carousel-slides img {
        width: 100%;
        min-width: 100%;
        height: 400px;
        object-fit: contain;
        background: #f0f0f0;
        flex-shrink: 0;
        display: block;
    }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

    .carousel-btn:hover {
        background: var(--primary);
        color: white;
    }

.carousel-prev {
    right: 10px;
}

.carousel-next {
    left: 10px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: 2px solid rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition);
}

    .carousel-dot.active {
        background: var(--primary);
        border-color: white;
        transform: scale(1.3);
        box-shadow: 0 0 8px rgba(0,0,0,0.3);
    }

.project-details {
    padding: 28px;
    flex-shrink: 0;
}

    .project-details h2 {
        font-size: 24px;
        margin-bottom: 12px;
        color: var(--dark);
        font-weight: 900;
    }

    .project-details .project-info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 18px;
    }

    .project-details .project-info-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: var(--text-light);
    }

        .project-details .project-info-item i {
            color: var(--primary);
            width: 20px;
            text-align: center;
        }

    .project-details p {
        color: var(--text-light);
        line-height: 1.8;
        margin-bottom: 15px;
        font-size: 14px;
    }

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .social-icons {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text .subtitle {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .image-3d-container {
        width: min(240px, 55vw) !important;
        height: min(240px, 55vw) !important;
    }

    .float-badge {
        font-size: 10px !important;
        padding: 7px 10px !important;
    }

        .float-badge:nth-child(1) {
            right: -15px !important;
        }

        .float-badge:nth-child(2) {
            left: -20px !important;
        }

        .float-badge:nth-child(3) {
            right: -15px !important;
        }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-hero img {
        height: 220px;
    }

    .article-content {
        padding: 20px;
    }

    .carousel-slides img {
        height: 250px;
    }

    .project-details .project-info-grid {
        grid-template-columns: 1fr;
    }

    .laptop-body {
        width: min(300px, 80vw);
    }

    .laptop-display {
        height: min(190px, 50vw);
    }

    .code-lines {
        font-size: 10px;
        padding: 14px 16px;
    }

    .logo-image {
        height: 24px;
    }

    .logo {
        font-size: 18px;
        gap: 6px;
    }

    .navbar {
        padding: 8px 16px;
    }

    .project-modal {
        padding: 10px;
    }

    .project-details {
        padding: 18px;
    }

    .article-content table {
        font-size: 12px;
    }

        .article-content table thead th, .article-content table tbody td {
            padding: 8px 10px;
        }

    .article-content figure.table {
        margin: 15px -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    @keyframes float3D {
        0%, 100% {
            transform: translateY(0) rotateY(0deg);
        }

        50% {
            transform: translateY(-8px) rotateY(3deg);
        }
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 22px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .image-3d-container {
        width: min(180px, 50vw) !important;
        height: min(180px, 50vw) !important;
    }

    .skills-grid, .services-grid, .portfolio-gallery, .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .article-hero img {
        height: 180px;
    }

    .carousel-slides img {
        height: 200px;
    }

    .laptop-body {
        width: min(260px, 85vw);
    }

    .laptop-display {
        height: min(160px, 55vw);
    }

    .code-lines {
        font-size: 9px;
        padding: 10px 12px;
    }
}
