* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --text-light: #ffffff;
    --text-gray: #a1a1aa;
    --text-dark: #71717a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Hide default cursor only on desktop when custom cursor is active */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10001;
    border-radius: 4px;
}

.skip-to-content:focus {
    top: 0;
}

/* Custom 3D Cursor */
.cursor-3d {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(99, 102, 241, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out, border-color 0.15s ease-out;
    display: none;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    visibility: hidden;
}

.cursor-3d::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
    animation: cursorPulse 2s ease-in-out infinite;
}

@keyframes cursorPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.2;
    }
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease-out, box-shadow 0.15s ease-out;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    display: none;
    visibility: hidden;
}

/* Cursor hover effects - only on desktop */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    a, button, .btn, .portfolio-item, .service-card {
        cursor: none;
    }
}

a:hover ~ .cursor-3d,
button:hover ~ .cursor-3d,
.btn:hover ~ .cursor-3d {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--accent-color);
}

a:hover ~ .cursor-dot,
button:hover ~ .cursor-dot,
.btn:hover ~ .cursor-dot {
    transform: translate(-50%, -50%) scale(2);
}

/* Hide cursor on mobile - handled by JavaScript now */
@media (max-width: 768px) {
    body {
        cursor: auto !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero .container {
    width: 100% !important;
    max-width: 1200px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

/* Hero Visual Wrapper */
.hero-visual-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Code Container */
.hero-visual-container {
    position: relative;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInLeft 1s ease;
}

.animated-code {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    position: relative;
}

.code-line {
    margin: 5px 0;
    opacity: 0;
    animation: codeFadeIn 0.5s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.4s; }
.code-line:nth-child(3) { animation-delay: 0.6s; }
.code-line:nth-child(4) { animation-delay: 0.8s; }
.code-line:nth-child(5) { animation-delay: 1s; }
.code-line:nth-child(6) { animation-delay: 1.2s; }
.code-line:nth-child(7) { animation-delay: 1.4s; }
.code-line:nth-child(8) { animation-delay: 1.6s; }

@keyframes codeFadeIn {
    to {
        opacity: 1;
    }
}

.indent {
    padding-left: 20px;
}

.indent-2 {
    padding-left: 40px;
}

.indent-3 {
    padding-left: 60px;
}

.code-keyword {
    color: var(--primary-color);
    font-weight: 600;
}

.code-function {
    color: var(--accent-color);
}

.code-string {
    color: #4ade80;
}

.code-bracket {
    font-size: 80px;
    font-weight: 300;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    animation: bracketPulse 2s ease-in-out infinite;
}

.left-bracket {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.right-bracket {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes bracketPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1.1);
    }
}

.floating-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: dotFloat 3s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.dot-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.dot-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes dotFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }
    50% {
        transform: translate(20px, -20px);
        opacity: 1;
    }
}

/* Skills Cards Container */
.skills-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    animation: fadeInLeft 1.2s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: cardSlideIn 0.6s ease forwards;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.skill-card-1 {
    animation-delay: 0.1s;
}

.skill-card-2 {
    animation-delay: 0.2s;
}

.skill-card-3 {
    animation-delay: 0.3s;
}

.skill-card-4 {
    animation-delay: 0.4s;
}

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-light);
    stroke-width: 2.5;
}

.skill-card:hover .skill-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.skill-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.skill-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.skill-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    position: relative;
    width: 0;
    animation: progressFill 1.5s ease forwards;
    animation-delay: 0.8s;
}

.skill-card-1 .skill-progress-bar {
    animation-delay: 0.9s;
}

.skill-card-2 .skill-progress-bar {
    animation-delay: 1s;
}

.skill-card-3 .skill-progress-bar {
    animation-delay: 1.1s;
}

.skill-card-4 .skill-progress-bar {
    animation-delay: 1.2s;
}

@keyframes progressFill {
    from {
        width: 0;
    }
    to {
        width: var(--progress-width, 90%);
    }
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    z-index: 0;
}

/* Particles.js Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

#particles-js {
    width: 100%;
    height: 100%;
    position: relative;
}

#particles-js canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Enable pointer events on canvas for interactivity */
#particles-js canvas {
    pointer-events: auto;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* 3D Floating Shapes Animation */
.hero-animations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 20px;
    opacity: 0.15;
    backdrop-filter: blur(2px);
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    top: 10%;
    left: 10%;
    animation: float1 20s ease-in-out infinite;
    transform: perspective(1000px) rotateY(45deg);
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    top: 20%;
    right: 15%;
    animation: float2 25s ease-in-out infinite;
    transform: perspective(1000px) rotateX(45deg);
    border-radius: 50%;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    bottom: 15%;
    left: 20%;
    animation: float3 30s ease-in-out infinite;
    transform: perspective(1000px) rotateZ(45deg);
}

.shape-4 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: 50%;
    right: 10%;
    animation: float4 22s ease-in-out infinite;
    transform: perspective(1000px) rotateY(30deg) rotateX(30deg);
}

.shape-5 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    bottom: 25%;
    right: 25%;
    animation: float5 18s ease-in-out infinite;
    transform: perspective(1000px) rotateX(60deg);
    border-radius: 50%;
}

.shape-6 {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    top: 30%;
    left: 5%;
    animation: float6 28s ease-in-out infinite;
    transform: perspective(1000px) rotateY(-45deg) rotateZ(30deg);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-7 {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    bottom: 10%;
    right: 35%;
    animation: float7 24s ease-in-out infinite;
    transform: perspective(1000px) rotateX(-30deg) rotateY(60deg);
}

.shape-8 {
    width: 95px;
    height: 95px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    top: 15%;
    left: 50%;
    animation: float8 26s ease-in-out infinite;
    transform: perspective(1000px) rotateY(20deg) rotateZ(60deg);
    border-radius: 20%;
}

@keyframes float1 {
    0%, 100% { transform: perspective(1000px) translate(0, 0) rotateY(45deg) rotateZ(0deg); }
    50% { transform: perspective(1000px) translate(30px, -30px) rotateY(45deg) rotateZ(180deg); }
}

@keyframes float2 {
    0%, 100% { transform: perspective(1000px) translate(0, 0) rotateX(45deg) rotateY(0deg); }
    50% { transform: perspective(1000px) translate(-40px, 40px) rotateX(45deg) rotateY(180deg); }
}

@keyframes float3 {
    0%, 100% { transform: perspective(1000px) translate(0, 0) rotateZ(45deg) rotateX(0deg); }
    50% { transform: perspective(1000px) translate(50px, 50px) rotateZ(45deg) rotateX(90deg); }
}

@keyframes float4 {
    0%, 100% { transform: perspective(1000px) translate(0, 0) rotateY(30deg) rotateX(30deg); }
    50% { transform: perspective(1000px) translate(-30px, -30px) rotateY(30deg) rotateX(60deg); }
}

@keyframes float5 {
    0%, 100% { transform: perspective(1000px) translate(0, 0) rotateX(60deg); }
    50% { transform: perspective(1000px) translate(35px, -35px) rotateX(120deg); }
}

@keyframes float6 {
    0%, 100% { transform: perspective(1000px) translate(0, 0) rotateY(-45deg) rotateZ(30deg); }
    50% { transform: perspective(1000px) translate(-45px, 45px) rotateY(-45deg) rotateZ(90deg); }
}

@keyframes float7 {
    0%, 100% { transform: perspective(1000px) translate(0, 0) rotateX(-30deg) rotateY(60deg); }
    50% { transform: perspective(1000px) translate(40px, -40px) rotateX(-60deg) rotateY(120deg); }
}

@keyframes float8 {
    0%, 100% { transform: perspective(1000px) translate(0, 0) rotateY(20deg) rotateZ(60deg); }
    50% { transform: perspective(1000px) translate(-50px, 50px) rotateY(40deg) rotateZ(120deg); }
}

.hero-content {
    text-align: left !important;
    z-index: 3;
    position: relative;
    animation: fadeInRight 1s ease;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: left !important;
    width: 100%;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-gray);
    margin-bottom: 40px;
    text-align: left !important;
    width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-light);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-top: 15px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 16px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 14px;
}

.about-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.profile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.gradient-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    background-size: 300% 300%;
    animation: gradientAnimation 5s ease infinite;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Services Section */
.services {
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.service-icon svg {
    width: 35px;
    height: 35px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.portfolio-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    z-index: 2;
    text-align: center;
    gap: 15px;
    transition: opacity 0.3s ease;
}

.portfolio-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.portfolio-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-tech {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gradient-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: all 0.3s ease;
}

.gradient-1 {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.7) 0%, rgba(245, 87, 108, 0.7) 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.7) 0%, rgba(0, 242, 254, 0.7) 100%);
}

.gradient-4 {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.7) 0%, rgba(56, 249, 215, 0.7) 100%);
}

.gradient-5 {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.7) 0%, rgba(254, 225, 64, 0.7) 100%);
}

.gradient-6 {
    background: linear-gradient(135deg, rgba(48, 207, 208, 0.7) 0%, rgba(51, 8, 103, 0.7) 100%);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 3;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.portfolio-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.portfolio-link:hover {
    color: var(--accent-color);
}

/* Contact Section */
.contact {
    background: var(--bg-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-item p {
    color: var(--text-gray);
    font-size: 16px;
}

.info-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--primary-color);
}

.linkedin-link {
    color: var(--primary-color) !important;
}

.linkedin-link:hover {
    color: var(--accent-color) !important;
}

.company-role {
    font-size: 14px;
    color: var(--text-dark);
    margin-top: 5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dark);
}

/* File Upload */
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.file-upload-label svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.file-upload-label span {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

#file-name {
    flex: 1;
    color: var(--text-gray);
}

.upload-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-upload-label:has(input:not(:placeholder-shown)) {
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: var(--text-gray);
}

.footer-links h3,
.footer-social h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-visual {
        order: 2;
    }

    .hero-content {
        order: 1;
        text-align: center !important;
        align-items: center !important;
    }

    .hero-title {
        font-size: 48px;
        text-align: center !important;
    }

    .hero-subtitle {
        font-size: 20px;
        text-align: center !important;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual-wrapper {
        gap: 25px;
    }

    .hero-visual-container {
        padding: 30px;
    }

    .code-bracket {
        font-size: 60px;
    }

    .animated-code {
        font-size: 14px;
    }

    .skills-cards-container {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .skill-card {
        padding: 20px;
    }

    .skill-icon {
        width: 45px;
        height: 45px;
    }

    .skill-title {
        font-size: 16px;
    }

    .skill-desc {
        font-size: 12px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Reduce floating shapes on tablet */
    .floating-shape {
        opacity: 0.1;
    }

    .shape-6,
    .shape-7 {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    /* Slightly reduce particles opacity on mobile for better performance */
    .particles-container {
        opacity: 0.8;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-visual-wrapper {
        gap: 20px;
    }

    .hero-visual-container {
        padding: 25px 20px;
    }

    .code-bracket {
        font-size: 50px;
        display: none;
    }

    .animated-code {
        font-size: 12px;
    }

    .skills-cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }

    .skill-card {
        padding: 20px;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
    }

    .skill-icon svg {
        width: 20px;
        height: 20px;
    }

    .skill-title {
        font-size: 16px;
    }

    .skill-desc {
        font-size: 12px;
    }

    .hero-title {
        font-size: 36px;
        text-align: center !important;
    }

    .hero-subtitle {
        font-size: 18px;
        text-align: center !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        justify-content: center;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile floating shapes - reduce size and count */
    .floating-shape {
        opacity: 0.08;
    }

    .shape-1 { width: 60px; height: 60px; }
    .shape-2 { width: 50px; height: 50px; }
    .shape-3 { width: 70px; height: 70px; }
    .shape-4 { width: 55px; height: 55px; }
    .shape-5 { width: 45px; height: 45px; }
    .shape-6 { display: none; }
    .shape-7 { display: none; }
    .shape-8 { display: none; }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 32px;
    }

    .hero-title {
        font-size: 28px;
    }

    /* Extra small devices - minimal animations */
    .floating-shape {
        opacity: 0.05;
    }

    .shape-1 { 
        width: 50px; 
        height: 50px; 
        top: 15%;
        left: 5%;
    }

    .shape-2 { 
        width: 40px; 
        height: 40px; 
        top: 25%;
        right: 10%;
    }

    .shape-3 { 
        width: 60px; 
        height: 60px; 
        bottom: 20%;
        left: 10%;
    }

    .shape-4,
    .shape-5 {
        display: none;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .floating-shape {
        animation: none !important;
        transform: none !important;
    }
    
    .hero-background::before {
        animation: none !important;
    }
}

