/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0f0f0f;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    min-height: 44px;
    min-width: 120px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
}

.nav-logo h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin: 0;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle:hover .bar {
    background: #667eea;
}

/* Active/Open state for hamburger menu */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: #667eea;
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: #667eea;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #b0b3c1;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-animation {
    position: relative;
    width: 400px;
    height: 400px;
    perspective: 1000px;
    perspective-origin: center center;
}

.floating-cube,
.floating-sphere,
.floating-pyramid {
    position: absolute;
    animation: float3D 8s ease-in-out infinite;
    transform-style: preserve-3d;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* 3D Cube */
.floating-cube {
    width: 80px;
    height: 80px;
    position: fixed;
    top: -1%;
    left: 150px;
    transform: translateY(-50%);
    z-index: 5;
    animation-delay: 0s;
    transform-style: preserve-3d;
}

.floating-cube::before,
.floating-cube::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
}

/* Cube front face */
.floating-cube {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    position: relative;
}

/* Cube top face */
.floating-cube::before {
    background: linear-gradient(135deg, #7c8ef0 0%, #8a5fb8 100%);
    transform: rotateX(90deg) translateZ(40px);
    border-radius: 8px;
    opacity: 0.8;
}

/* Cube right face */
.floating-cube::after {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4a96 100%);
    transform: rotateY(90deg) translateZ(40px);
    border-radius: 8px;
    opacity: 0.6;
}

/* 3D Sphere */
.floating-sphere {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 5;
    animation-delay: 2s;
    background: radial-gradient(circle at 30% 30%, 
        #9ca8f2 0%, 
        #667eea 30%, 
        #764ba2 70%, 
        #4a3575 100%);
    box-shadow: 
        inset -10px -10px 20px rgba(0, 0, 0, 0.3),
        inset 10px 10px 20px rgba(255, 255, 255, 0.1),
        0 15px 30px rgba(102, 126, 234, 0.4);
}

.floating-sphere::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 18px;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(1px);
}

/* 3D Pyramid */
.floating-pyramid {
    width: 70px;
    height: 70px;
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 5;
    animation-delay: 4s;
    transform-style: preserve-3d;
}

/* Pyramid base */
.floating-pyramid::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4a3575 0%, #2d1f42 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: rotateX(0deg);
}

/* Pyramid main face */
.floating-pyramid {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    box-shadow: 
        inset -5px -5px 15px rgba(0, 0, 0, 0.3),
        0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Pyramid right face */
.floating-pyramid::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 70px;
    background: linear-gradient(45deg, #5a6fd8 0%, #6a4a96 100%);
    clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
    opacity: 0.7;
    transform: skewY(-15deg) translateX(35px);
    transform-origin: bottom left;
}

/* Enhanced 3D floating animation */
@keyframes float3D {
    0% { 
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotateX(10deg) rotateY(90deg) rotateZ(5deg); 
    }
    50% { 
        transform: translateY(-25px) rotateX(0deg) rotateY(180deg) rotateZ(0deg); 
    }
    75% { 
        transform: translateY(-15px) rotateX(-10deg) rotateY(270deg) rotateZ(-5deg); 
    }
    100% { 
        transform: translateY(0px) rotateX(0deg) rotateY(360deg) rotateZ(0deg); 
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-text {
    font-size: 0.9rem;
    color: #b0b3c1;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 3px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    border-radius: 2px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -6px;
    width: 15px;
    height: 15px;
    border-right: 3px solid #667eea;
    border-bottom: 3px solid #667eea;
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

@keyframes glow {
    from { 
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    }
    to { 
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8), 0 0 40px rgba(102, 126, 234, 0.6);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0) translateX(-50%); 
        opacity: 1;
    }
    40% { 
        transform: translateY(-15px) translateX(-50%); 
        opacity: 0.8;
    }
    60% { 
        transform: translateY(-8px) translateX(-50%); 
        opacity: 0.9;
    }
}

/* Section Styles */
section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #b0b3c1;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #1a1a2e;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #b0b3c1;
    font-size: 1.1rem;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    max-width: 600px;
    justify-items: center;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 150px;
    opacity: 0.8;
    transform: scale(0.95);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.stat-item.animate {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item.animate::before {
    transform: translateX(0);
}

.stat-item.animate h3 {
    animation: pulseNumber 0.6s ease-out;
}

@keyframes pulseNumber {
    0% {
        transform: scale(1);
        color: #667eea;
    }
    50% {
        transform: scale(1.1);
        color: #764ba2;
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }
    100% {
        transform: scale(1);
        color: #667eea;
        text-shadow: none;
    }
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
}

.stat-item p {
    color: #b0b3c1;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* CV Download Button */
.cv-download {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.btn-cv {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-cv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-cv:hover::before {
    left: 100%;
}

.btn-cv:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #7c8ef0 0%, #8a5fb8 100%);
}

.btn-cv:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-cv i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-cv:hover i {
    transform: translateY(-2px);
}

.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.image-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border: 4px solid transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: padding-box;
}

.image-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    z-index: 1;
}

/* Hide placeholder when image loads successfully */
.profile-img:not([src=""]):not([style*="display: none"]) + .image-placeholder {
    display: none;
}

/* Show placeholder when image fails to load */
.profile-img[style*="display: none"] + .image-placeholder,
.profile-img:not([src]) + .image-placeholder {
    display: flex;
}

/* Skills Section */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #667eea;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.skill-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
    transition: all 0.3s ease;
}

/* Specific sizing for smaller logos to match others */
.skill-logo[src*="FumeFX.svg"],
.skill-logo[src*="photoshop.png"],
.skill-logo[src*="premiere.svg"],
.skill-logo[src*="aftereffect.svg"],
.skill-logo[src*="Cinema-4D-Logo.png"] {
    width: 38px;
    height: 38px;
}

.skill-icon:hover {
    transform: translateY(-2px);
}

.skill-icon:hover .skill-logo {
    transform: scale(1.1);
}

.skill-info {
    flex: 1;
}

.skill-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.2) 50%, 
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-progress.animate::after {
    transform: translateX(100%);
}

.skill-percentage {
    font-size: 0.9rem;
    color: #b0b3c1;
}

/* Certificates Section */
.certificates {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.certificates::before {
    display: none;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.certificate-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.certificate-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-item:hover .cert-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.certificate-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2rem;
    color: white;
}

/* Fallback for missing images */
.cert-img {
    transition: transform 0.3s ease;
}

.cert-img:error,
.cert-img[src=""],
.cert-img[src*="placeholder"] {
    display: none;
}

.certificate-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback content when image fails to load */
.certificate-image::after {
    content: "📜";
    font-size: 4rem;
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.certificate-image:has(.cert-img[src=""]) .cert-img,
.certificate-image:has(.cert-img:not([src])) .cert-img {
    display: none;
}

.certificate-image:has(.cert-img[src=""])::after,
.certificate-image:has(.cert-img:not([src]))::after {
    display: block;
}

.certificate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.certificate-item:hover::before {
    transform: scaleX(1);
}

.certificate-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.certificate-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    flex-shrink: 0;
}

.certificate-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.certificate-item:hover .certificate-icon::before {
    transform: translateX(100%);
}

.certificate-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
}

.certificate-issuer {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.certificate-date {
    font-size: 0.9rem;
    color: #b0b3c1;
    margin-bottom: 1rem;
    font-weight: 500;
}

.certificate-description {
    color: #b0b3c1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.certificate-badge {
    display: flex;
    justify-content: flex-start;
}

.badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
}

.badge.verified {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: #22c55e;
}

.badge.award {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: #fbbf24;
}

.badge.certified {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: #3b82f6;
}

.badge.recognition {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border-color: #a855f7;
}

.badge.master {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

/* Testimonials Section */

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.03) 50%, transparent 100%);
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.client-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.avatar-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.client-info {
    flex: 1;
}

.client-info h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.client-role {
    font-size: 0.9rem;
    color: #667eea;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.client-company {
    font-size: 0.8rem;
    color: #b0b3c1;
    margin: 0;
}

.rating-stars {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 0.9rem;
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}

.card-body {
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 2.5rem;
    color: rgba(102, 126, 234, 0.2);
    z-index: 1;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
    padding-left: 1rem;
}

.project-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.project-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-date {
    color: #b0b3c1;
    font-size: 0.85rem;
}

/* Portfolio Section */
.portfolio {
    background: #1a1a2e;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    color: #b0b3c1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-image:hover video {
    transform: scale(1.05);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.video-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.video-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.portfolio-content p {
    color: #b0b3c1;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Portfolio Load More */
.portfolio-item.hidden-item {
    display: none;
}

.portfolio-item.show-item {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

/* Show Less state styling */
.load-more-btn.show-less-state {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.load-more-btn.show-less-state:hover {
    background: linear-gradient(135deg, #8e5ab8 0%, #7b8df0 100%);
}

.load-more-btn.loading {
    pointer-events: none;
}

.load-more-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.load-more-btn.hidden {
    display: none;
}

/* Contact Section */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 4rem; */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-details p {
    color: #b0b3c1;
}

/* Phone link styling */
.contact-details a[href^="tel:"] {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.contact-details a[href^="tel:"]:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.contact-details a[href^="tel:"]:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.contact-details a[href^="tel:"]:hover:before {
    width: 100%;
}

/* Email link styling */
.contact-details a[href^="mailto:"] {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.contact-details a[href^="mailto:"]:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.contact-details a[href^="mailto:"]:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.contact-details a[href^="mailto:"]:hover:before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b3c1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .form-row {
    display: flex;
    gap: 1rem;
}

.contact-form .form-row input {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #b0b3c1;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.contact-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Hide honeypot */
.contact-form .hidden {
    display: none !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b3c1;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer section {
    padding: 0;
}

.footer-content {
    text-align: center;
    color: #b0b3c1;
    font-size: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 80%;
    max-width: 800px;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #667eea;
}

.video-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-container {
        padding: 0 2rem;
        gap: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        padding: 2rem 0;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        margin: 0.5rem 0;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: block;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .nav-link:hover {
        background: rgba(102, 126, 234, 0.1);
        transform: translateX(5px);
    }

    .nav-toggle {
        display: flex;
        font-size: 1.5rem;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: none;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover {
        background: rgba(102, 126, 234, 0.15);
    }
    
    .nav-toggle:active {
        background: rgba(102, 126, 234, 0.25);
        transform: scale(0.95);
    }
    
    .bar {
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
    
    .nav-toggle:hover .bar {
        background: #667eea;
        box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .btn {
        min-width: 150px;
        padding: 12px 24px;
        font-size: 1rem;
        min-height: 44px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .skill-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .skill-icon {
        width: 40px;
        height: 40px;
    }
    
    .skill-logo {
        width: 24px;
        height: 24px;
    }
    
    .skill-logo[src*="FumeFX.svg"],
    .skill-logo[src*="photoshop.png"],
    .skill-logo[src*="premiere.svg"],
    .skill-logo[src*="aftereffect.svg"],
    .skill-logo[src*="Cinema-4D-Logo.png"] {
        width: 28px;
        height: 28px;
    }
    
    .skill-info h4 {
        font-size: 0.95rem;
    }
    
    .skill-bar {
        height: 6px;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .client-info {
        text-align: center;
    }
    
    .rating-stars {
        margin: 0;
        justify-content: center;
    }
    
    .project-details {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-filters {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 80px;
    }

    .load-more-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        text-align: center;
    }

    .form-row {
        flex-direction: column;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px 16px;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .contact-form button {
        padding: 14px 28px;
        font-size: 1.1rem;
        min-height: 48px;
    }

    .hero-animation {
        width: 300px;
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .quote-mark {
        font-size: 3rem;
        text-align: center;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: center;
    }
    
    .testimonial-nav {
        width: calc(100% + 60px);
        left: -30px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .testimonial-dots {
        gap: 0.8rem;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        justify-content: center;
    }

    .load-more-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .load-more-container {
        margin-top: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .hero-animation {
        width: 300px;
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-container {
        padding: 1rem;
        gap: 1.5rem;
    }
        .stat-item p {
        font-size: 0.6rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .btn {
        width: 200px;
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .hero-animation {
        width: 250px;
        height: 250px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .portfolio-item {
        margin: 0;
    }
    
    .portfolio-filters {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 70px;
    }

    .certificate-item {
        margin: 0;
        padding: 1.5rem;
    }

    .testimonial-card {
        padding: 1.2rem;
    }
    
    .card-header {
        gap: 0.8rem;
    }
    
    .client-avatar {
        width: 50px;
        height: 50px;
    }
    
    .client-info h4 {
        font-size: 1rem;
    }
    
    .client-role {
        font-size: 0.8rem;
    }
    
    .client-company {
        font-size: 0.8rem;
    }
    
    .rating-stars {
        font-size: 0.9rem;
    }
    
    .testimonial-quote {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .project-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .project-date {
        font-size: 0.7rem;
    }

    .skill-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .skill-item {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
        padding: 0.8rem;
    }
    
    .skill-icon {
        width: 35px;
        height: 35px;
        margin: 0 auto;
    }
    
    .skill-logo {
        width: 20px;
        height: 20px;
    }
    
    .skill-logo[src*="FumeFX.svg"],
    .skill-logo[src*="photoshop.png"],
    .skill-logo[src*="premiere.svg"],
    .skill-logo[src*="aftereffect.svg"],
    .skill-logo[src*="Cinema-4D-Logo.png"] {
        width: 24px;
        height: 24px;
    }
    
    .skill-info h4 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .skill-bar {
        height: 4px;
        margin-bottom: 0.2rem;
    }

    .skill-percentage {
        font-size: 0.7rem;
        margin-top: 0.1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .contact-details h4 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .contact-form button {
        padding: 16px 32px;
        font-size: 1.1rem;
        min-height: 52px;
        border-radius: 8px;
    }
    
    .social-links {
        gap: 1rem;
        justify-content: center;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        width: 180px;
        padding: 12px 16px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-animation {
        width: 200px;
        height: 200px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .filter-btn,
    .nav-link,
    .social-link,
    .portfolio-item,
    .certificate-item {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .btn:active,
    .filter-btn:active,
    .nav-link:active,
    .social-link:active {
        transform: scale(0.95);
    }
    
    .portfolio-item:active,
    .certificate-item:active {
        transform: translateY(2px);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-animation,
    .portfolio-item img,
    .certificate-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
