* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Hide scrollbar for all elements */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
    width: 0;
    height: 0;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(99, 102, 241, 0.5);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari and Opera */
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Improve scrolling on mobile and disable animations for better performance */
@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Disable complex animations on mobile to prevent glitches */
    .shape {
        display: none !important;
    }
    
    .floating-shapes {
        display: none !important;
    }
    
    .image-container {
        animation: none !important;
        transform-style: flat !important;
    }
    
    .image-glow {
        animation: none !important;
    }
    
    .project-icon {
        animation: none !important;
    }
    
    .hero-text,
    .hero-image {
        animation: none !important;
        opacity: 1 !important;
    }
    
    .timeline-item {
        animation: none !important;
        opacity: 1 !important;
    }
    
    /* Disable 3D transforms on mobile */
    .project-card,
    .skill-category,
    .testimonial-card {
        transform-style: flat !important;
    }
    
    .hero-profile-image {
        transform: none !important;
    }
    
    /* Simplify hover effects on mobile - use active state instead */
    .project-card:active,
    .skill-category:active,
    .testimonial-card:active {
        transform: translateY(-2px) !important;
    }
    
    /* Reduce parallax effect on mobile - already hidden above */
    
    /* Ensure image is on top of glow effect */
    .image-container {
        isolation: isolate;
    }
    
    .hero-profile-image {
        position: relative;
        z-index: 10;
    }
    
    .image-glow {
        z-index: 0;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
    position: relative;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari and Opera */
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        width: 100vw;
        max-width: 100vw;
    }
    
    * {
        max-width: 100%;
    }
    
    /* Prevent any element from going off screen */
    .container,
    section,
    .hero-content,
    .about-content,
    .contact-content {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    
    /* Ensure no negative positioning causes overflow */
    .hero-background,
    .floating-shapes,
    .shape {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Touch-friendly elements */
a, button, .btn, .project-link, .contact-item {
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.3);
    touch-action: manipulation;
}

/* Prevent horizontal scroll on mobile */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure containers don't overflow */
.container, .nav-container, .hero-content, .about-content, .contact-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevent text selection on buttons */
.btn, .nav-link {
    user-select: none;
    -webkit-user-select: none;
}

/* Prevent text overflow */
p, h1, h2, h3, h4, h5, h6, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 50px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        overflow-x: hidden;
        overflow-y: visible;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

@media (max-width: 768px) {
    .shape {
        display: none;
    }
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 30%;
    animation-delay: 15s;
}

@media (max-width: 768px) {
    .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-2 {
        width: 120px;
        height: 120px;
    }
    
    .shape-3 {
        width: 100px;
        height: 100px;
    }
    
    .shape-4 {
        width: 130px;
        height: 130px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

@media (max-width: 768px) {
    .hero-text {
        animation: none;
        opacity: 1;
    }
}

.greeting {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.name-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.tech-badge:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--glow-color);
}

.hero-cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px var(--glow-color);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px var(--glow-color);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px var(--glow-color);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

@media (max-width: 768px) {
    .hero-image {
        animation: none;
        opacity: 1;
    }
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
    animation: rotate3d 20s infinite linear;
    z-index: 1;
}

@media (max-width: 768px) {
    .image-container {
        animation: none;
        transform-style: flat;
        z-index: 1;
        position: relative;
        overflow: visible;
    }
}

.hero-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    transform: translateZ(50px);
    box-shadow: 0 20px 60px var(--glow-color);
    border: 4px solid rgba(99, 102, 241, 0.3);
    max-width: 100%;
    height: auto;
    display: block;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-profile-image {
        transform: none;
        z-index: 2;
        position: relative;
    }
}

.image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(30px);
    animation: pulse 3s infinite ease-in-out;
    z-index: 1;
}

@media (max-width: 768px) {
    .image-glow {
        animation: none;
        opacity: 0.15;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        filter: blur(20px);
        z-index: 1;
    }
}

@keyframes rotate3d {
    0% {
        transform: rotateY(0deg) rotateX(5deg);
    }
    50% {
        transform: rotateY(180deg) rotateX(-5deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@media (max-width: 768px) {
    .scroll-indicator {
        display: none !important;
        animation: none !important;
    }
}

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

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

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

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-darker);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.about-intro strong {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-specialty {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.specialty-list {
    margin-bottom: 2rem;
}

.specialty-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.specialty-item:hover {
    transform: translateY(-5px) translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--glow-color);
}

@media (max-width: 768px) {
    .specialty-item:hover {
        transform: translateY(-2px) !important;
    }
}

.specialty-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.specialty-item strong {
    color: var(--primary-color);
}

.about-experience {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .skill-category {
        transform-style: flat;
        border-radius: 15px;
    }
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px var(--glow-color);
}

@media (max-width: 768px) {
    .skill-category:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    }
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.skill-item:hover {
    border-left-color: var(--primary-color);
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .skill-item:hover {
        transform: translateX(3px) !important;
    }
}

/* Projects Section */
.projects {
    background: var(--bg-darker);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .project-card {
        transform-style: flat;
        border-radius: 15px;
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

    .project-card:hover {
        transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
        border-color: var(--primary-color);
        box-shadow: 0 25px 60px var(--glow-color);
    }
    
    @media (max-width: 768px) {
        .project-card:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
        }
    }

.project-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: floatIcon 3s infinite ease-in-out;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-stack {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    padding: 0.7rem 1.5rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px var(--glow-color);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }
}

@media (max-width: 480px) {
    .timeline::before {
        left: 0;
        width: 1.5px;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 3rem;
    animation: slideInLeft 0.8s ease-out;
}

@media (max-width: 768px) {
    .timeline-item {
        animation: none;
        opacity: 1;
    }
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 0 20px var(--glow-color);
}

@media (max-width: 768px) {
    .timeline-marker {
        left: -0.75rem;
    }
}

@media (max-width: 480px) {
    .timeline-marker {
        left: -0.5rem;
        width: 16px;
        height: 16px;
    }
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.timeline-content:hover {
    transform: translateX(10px) translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px var(--glow-color);
}

.job-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.job-company {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.job-period {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.job-duties {
    list-style: none;
    padding-left: 0;
}

.job-duties li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
}

.job-duties li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-darker);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

@media (max-width: 768px) {
    .testimonial-card {
        transform-style: flat;
        border-radius: 15px;
    }
}

.testimonial-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px var(--glow-color);
}

@media (max-width: 768px) {
    .testimonial-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    }
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    transform: translateZ(0);
}

.contact-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px var(--glow-color);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item:hover a {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
}

/* Responsive Design */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .image-container {
        width: 350px;
        height: 350px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablet (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--card-border);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        padding: 5px;
    }

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

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

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

    .hero {
        padding: 80px 15px 50px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 1rem;
        position: relative;
        z-index: 1;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }

    .tech-stack {
        justify-content: center;
        gap: 0.75rem;
    }

    .tech-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-cta-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .image-container {
        width: 280px;
        height: 280px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

    .hero-profile-image {
        border-width: 3px;
        position: relative;
        z-index: 2;
    }
    
    .image-glow {
        z-index: 0;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
        padding: 0 10px;
    }

    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    .about-content {
        padding: 0 10px;
    }

    .about-intro {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .specialty-item {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }

    .specialty-item i {
        margin-bottom: 0.5rem;
    }

    .project-card {
        padding: 1.2rem;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    .project-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .skill-category {
        padding: 1.2rem;
    }
    
    .testimonial-card {
        padding: 1.2rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        width: 100%;
        text-align: center;
        justify-content: center;
        min-height: 44px;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        min-height: 44px;
    }

    .contact-item i {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0.8rem 15px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero {
        padding: 70px 15px 40px;
        min-height: auto;
    }

    .greeting {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        line-height: 1.6;
    }

    .tech-stack {
        gap: 0.5rem;
        justify-content: center;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .hero-cta-text {
        font-size: 0.95rem;
        text-align: center;
    }

    .image-container {
        width: 240px;
        height: 240px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }
    
    .hero-profile-image {
        position: relative;
        z-index: 2;
    }
    
    .image-glow {
        z-index: 0;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .about-intro {
        font-size: 1rem;
        line-height: 1.7;
    }

    .about-specialty {
        font-size: 1.1rem;
    }

    .specialty-item {
        padding: 1rem;
        gap: 0.8rem;
    }

    .specialty-item i {
        font-size: 1.5rem;
    }

    .specialty-item div {
        font-size: 0.95rem;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .category-header i {
        font-size: 2rem;
    }

    .category-header h3 {
        font-size: 1.3rem;
    }

    .skill-item {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .project-card {
        padding: 1rem;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .skill-category {
        max-width: 100%;
        width: 100%;
    }
    
    .testimonial-card {
        max-width: 100%;
        width: 100%;
    }
    
    .specialty-item {
        max-width: 100%;
        width: 100%;
    }

    .project-icon {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .project-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .project-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .skill-category {
        padding: 1rem;
    }
    
    .category-header {
        margin-bottom: 1rem;
    }
    
    .category-header i {
        font-size: 1.8rem;
    }
    
    .category-header h3 {
        font-size: 1.2rem;
    }
    
    .skill-item {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .testimonial-quote {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .specialty-item {
        padding: 0.9rem;
    }

    .project-stack {
        font-size: 0.9rem;
    }

    .project-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-quote {
        font-size: 2.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .job-title {
        font-size: 1.3rem;
    }

    .job-company {
        font-size: 1.1rem;
    }

    .job-duties li {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .contact-item {
        padding: 1.2rem;
    }

    .contact-item a {
        font-size: 1rem;
        word-break: break-word;
    }

    .footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .scroll-indicator {
        display: none !important;
        animation: none !important;
    }

    .mouse {
        display: none;
    }
    
    .timeline {
        padding-left: 0.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -0.75rem;
        width: 16px;
        height: 16px;
    }
}

/* Small Mobile (360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 70px 12px 40px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .image-container {
        width: 200px;
        height: 200px;
    }

    .tech-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .btn {
        max-width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .project-card,
    .testimonial-card,
    .skill-category {
        padding: 1rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 60px 20px 30px;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .image-container {
        width: 200px;
        height: 200px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Card Effects */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Global scrollbar hiding - applies to all elements */
* {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

*::-webkit-scrollbar-track {
    display: none !important;
    background: transparent !important;
}

*::-webkit-scrollbar-thumb {
    display: none !important;
    background: transparent !important;
}

*::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
