/* ================================================
   DILSHAN NIMESH - MODERN PORTFOLIO
   Light Glassmorphism Theme
   ================================================ */

/* -------------------- CSS Variables -------------------- */
:root {
    /* Colors */
    --bg-dark: #ffffff;
    --bg-surface: #f5f5f7;
    --glass: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --text: #1a1a2e;
    --text-muted: #64748b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f0f0f5 50%, #f5f5f7 100%);

    /* Shadows */
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------- Reset & Base -------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    zoom: 1.25;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -------------------- Typography -------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--text-muted);
}

/* -------------------- Utility Classes -------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* -------------------- Glassmorphism -------------------- */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition-medium);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-medium);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--primary);
    color: var(--primary);
}

/* -------------------- Navigation -------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0);
}

.logo:hover img {
    transform: rotateY(360deg);
}

@keyframes logoColorCycle {
    0% {
        filter: brightness(0);
    }

    20% {
        filter: brightness(1) hue-rotate(0deg) saturate(2);
    }

    40% {
        filter: brightness(1) hue-rotate(90deg) saturate(2);
    }

    60% {
        filter: brightness(1) hue-rotate(180deg) saturate(2);
    }

    80% {
        filter: brightness(1) hue-rotate(270deg) saturate(2);
    }

    100% {
        filter: brightness(1) hue-rotate(360deg) saturate(1);
    }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition-fast);
}

/* -------------------- Hero Section -------------------- */
.hero {
    min-height: calc(100vh / 1.25);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: gradientMove 15s ease-in-out infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(2%, 2%) rotate(1deg);
    }

    66% {
        transform: translate(-1%, 1%) rotate(-1deg);
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: 40px;
}

.hero-label {
    display: inline-block;
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 500px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-frame {
    position: relative;
    width: 400px;
    height: 500px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    opacity: 0.2;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
}

.hero-image-frame img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    z-index: 1;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.floating-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.floating-icon.icon-large img {
    width: 45px;
    height: 45px;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    bottom: 20%;
    left: 0%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    top: 30%;
    right: 5%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(3deg);
    }

    50% {
        transform: translateY(-5px) rotate(-2deg);
    }

    75% {
        transform: translateY(-20px) rotate(2deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* -------------------- About Section -------------------- */
.about {
    background: var(--bg-surface);
    overflow: hidden;
}

.about .container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 350px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    border-radius: 32px;
    opacity: 0.15;
    z-index: -1;
}

.about-content {
    padding-top: 20px;
}

.about-content h2 {
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content>p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-quote {
    padding: 24px 28px;
    border-left: 3px solid var(--primary);
    background: var(--glass);
    border-radius: 0 16px 16px 0;
    margin: 28px 0;
    transition: var(--transition-medium);
}

.about-quote:hover {
    background: rgba(99, 102, 241, 0.08);
    border-left-color: var(--accent);
}

.about-quote p {
    font-style: italic;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.8;
}

.signature {
    height: 200px;
    margin: 20px 0;
    filter: opacity(0.7);
    transition: var(--transition-fast);
}

.signature:hover {
    filter: opacity(1);
    transform: scale(1.05);
}

/* Skills Grid */
.skills-grid {
    margin-top: 30px;
    display: grid;
    gap: 18px;
}

.skill-item {
    background: var(--glass);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.skill-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-header span:first-child {
    font-weight: 600;
    font-size: 0.95rem;
}

.skill-header span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: skill-shine 2s ease-in-out infinite;
}

@keyframes skill-shine {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* -------------------- Services Section -------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 50px 30px;
    cursor: pointer;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-medium);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h4 {
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-card .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.service-card .btn-link:hover {
    gap: 12px;
    color: var(--accent);
}

/* -------------------- Portfolio Section -------------------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-medium);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    margin-bottom: 8px;
}

.portfolio-overlay span {
    color: var(--primary);
    font-size: 0.875rem;
}

/* -------------------- Testimonials Section -------------------- */
.testimonials {
    background: var(--bg-surface);
}

.testimonials-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    text-align: center;
    padding: 40px;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 24px;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-quote {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
    position: relative;
}



.testimonial-author h5 {
    margin-bottom: 4px;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.testimonial-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-nav button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.testimonial-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial-dots span.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* -------------------- Contact Section -------------------- */
.contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-item span {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* -------------------- Footer -------------------- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

/* -------------------- Animations -------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

/* -------------------- Responsive -------------------- */

/* Disable zoom on smaller screens for better mobile experience */
@media (max-width: 1200px) {
    html {
        zoom: 1;
    }
}

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-image-frame {
        width: 300px;
        height: 380px;
        margin: 0 auto;
    }

    .floating-icons {
        display: none;
    }

    .hero-icons-orbit {
        display: none;
    }

    .hero-glow {
        display: none;
    }

    .about .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .about-image img {
        max-width: 280px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 16px 0;
    }

    .navbar .container {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .nav-cta {
        display: none;
    }

    .nav-cta.active {
        display: flex;
        position: fixed;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .logo img {
        height: 40px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .glass-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-label {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 32px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-socials {
        gap: 10px;
    }

    .hero-socials a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-image-frame {
        width: 250px;
        height: 320px;
    }

    .scroll-indicator {
        display: none;
    }

    /* About Section Mobile */
    .about-content h2 {
        font-size: 1.5rem;
    }

    .about-content>p {
        font-size: 1rem;
    }

    .about-quote {
        padding: 16px 20px;
        margin: 20px 0;
    }

    .about-quote p {
        font-size: 0.95rem;
    }

    .signature {
        height: 120px;
        margin: 16px auto;
    }

    .skill-item {
        padding: 12px 16px;
    }

    .skill-header span:first-child {
        font-size: 0.85rem;
    }

    /* Services Mobile */
    .service-card {
        padding: 32px 20px;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }

    .service-card h4 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* Portfolio Mobile */
    .portfolio-tabs {
        gap: 8px;
        margin-bottom: 24px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .portfolio-info h4 {
        font-size: 0.9rem;
    }

    .portfolio-info .portfolio-category {
        font-size: 0.7rem;
    }

    .play-overlay i {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .category-heading {
        font-size: 1.2rem;
    }

    /* Testimonials Mobile */
    .testimonial-item {
        padding: 24px 16px;
    }

    .testimonial-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .testimonial-quote {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .testimonial-nav button {
        width: 40px;
        height: 40px;
    }

    /* Contact Mobile */
    .contact-info h2 {
        font-size: 1.5rem;
    }

    .contact-info p {
        font-size: 0.95rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .contact-item-icon {
        width: 45px;
        height: 45px;
    }

    .contact-item strong {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 24px 0;
    }

    .footer .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer p {
        font-size: 0.85rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
    }

    .modal-close {
        top: -40px;
        font-size: 2rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .section {
        padding: 48px 0;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .about-content h2 {
        font-size: 1.25rem;
    }

    .hero-image-frame {
        width: 200px;
        height: 260px;
    }

    .glass-card {
        padding: 20px 12px;
    }

    .about-image img {
        max-width: 220px;
    }

    .signature {
        height: 100px;
    }

    .skills-grid {
        gap: 12px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-card {
        padding: 24px 16px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .testimonial-quote {
        font-size: 0.9rem;
    }

    .testimonial-author h5 {
        font-size: 0.95rem;
    }

    .testimonial-author span {
        font-size: 0.8rem;
    }

    .social-links {
        gap: 8px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }

    .contact-info h2 {
        font-size: 1.25rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .hero-buttons .btn {
        padding: 12px 24px;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    h1,
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-label {
        font-size: 0.7rem;
    }

    .hero-image-frame {
        width: 180px;
        height: 230px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .portfolio-tabs {
        gap: 6px;
    }

    .service-card h4 {
        font-size: 1rem;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
}

/* Landscape orientation on phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero .container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .hero-image-frame {
        width: 180px;
        height: 230px;
    }

    .hero-buttons {
        flex-direction: row;
        max-width: none;
    }

    .hero-buttons .btn {
        width: auto;
    }
}

/* -------------------- Loading Animation -------------------- */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* -------------------- Portfolio Enhancements -------------------- */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 32px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* Video Thumbnails */
.video-thumbnail {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    transform: scale(0.8);
    transition: var(--transition-medium);
}

.video-thumbnail:hover .play-overlay i {
    transform: scale(1);
}

.portfolio-info {
    padding: 12px 0 0 0;
}

.portfolio-info .portfolio-category {
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.portfolio-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.portfolio-cta {
    text-align: center;
    margin-top: 40px;
}

/* Category Sections */
.portfolio-category-section {
    margin-bottom: 60px;
}

.category-heading {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-heading i {
    color: var(--primary);
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 16px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* -------------------- Enhanced Hero Icons -------------------- */
.hero-icons-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    animation: orbit-spin 30s linear infinite;
}

.orbit-ring-1 {
    width: 450px;
    height: 450px;
}

.orbit-ring-2 {
    width: 550px;
    height: 550px;
    animation-direction: reverse;
    animation-duration: 40s;
}

@keyframes orbit-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 3D Orbit Animation - Icons go behind and come forward */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    perspective: 800px;
    transform-style: preserve-3d;
}

.floating-icon {
    position: absolute;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s, border-color 0.3s;
    pointer-events: auto;
}

.floating-icon:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.floating-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* 3D Orbit Positions with depth animation */
.floating-icon:nth-child(1) {
    top: 5%;
    left: 50%;
    animation: orbit3d-1 8s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
    top: 20%;
    left: 0%;
    animation: orbit3d-2 9s ease-in-out infinite 0.5s;
}

.floating-icon:nth-child(3) {
    top: 20%;
    right: 0%;
    animation: orbit3d-3 7s ease-in-out infinite 1s;
}

.floating-icon:nth-child(4) {
    top: 50%;
    left: -10%;
    animation: orbit3d-4 10s ease-in-out infinite 0.3s;
}

.floating-icon:nth-child(5) {
    top: 50%;
    right: -10%;
    animation: orbit3d-5 8s ease-in-out infinite 0.8s;
}

.floating-icon:nth-child(6) {
    bottom: 20%;
    left: 0%;
    animation: orbit3d-6 9s ease-in-out infinite 1.2s;
}

.floating-icon:nth-child(7) {
    bottom: 20%;
    right: 0%;
    animation: orbit3d-7 7s ease-in-out infinite 0.6s;
}

.floating-icon:nth-child(8) {
    bottom: 5%;
    left: 50%;
    animation: orbit3d-8 10s ease-in-out infinite 0.9s;
}

/* 3D orbit keyframes - icons move behind (z: -100) and in front (z: 100) */
@keyframes orbit3d-1 {

    0%,
    100% {
        transform: translateY(0) translateZ(50px) scale(1.1);
        z-index: 10;
        opacity: 1;
    }

    50% {
        transform: translateY(-20px) translateZ(-80px) scale(0.8);
        z-index: -1;
        opacity: 0.4;
    }
}

@keyframes orbit3d-2 {

    0%,
    100% {
        transform: translateX(0) translateZ(-60px) scale(0.85);
        z-index: -1;
        opacity: 0.5;
    }

    50% {
        transform: translateX(30px) translateZ(60px) scale(1.1);
        z-index: 10;
        opacity: 1;
    }
}

@keyframes orbit3d-3 {

    0%,
    100% {
        transform: translateX(0) translateZ(40px) scale(1.05);
        z-index: 10;
        opacity: 1;
    }

    50% {
        transform: translateX(-25px) translateZ(-70px) scale(0.8);
        z-index: -1;
        opacity: 0.4;
    }
}

@keyframes orbit3d-4 {

    0%,
    100% {
        transform: translateY(0) translateZ(-50px) scale(0.9);
        z-index: -1;
        opacity: 0.5;
    }

    50% {
        transform: translateY(-15px) translateZ(70px) scale(1.15);
        z-index: 10;
        opacity: 1;
    }
}

@keyframes orbit3d-5 {

    0%,
    100% {
        transform: translateY(0) translateZ(60px) scale(1.1);
        z-index: 10;
        opacity: 1;
    }

    50% {
        transform: translateY(20px) translateZ(-60px) scale(0.85);
        z-index: -1;
        opacity: 0.45;
    }
}

@keyframes orbit3d-6 {

    0%,
    100% {
        transform: translateX(0) translateZ(30px) scale(1);
        z-index: 10;
        opacity: 1;
    }

    50% {
        transform: translateX(20px) translateZ(-80px) scale(0.75);
        z-index: -1;
        opacity: 0.4;
    }
}

@keyframes orbit3d-7 {

    0%,
    100% {
        transform: translateX(0) translateZ(-40px) scale(0.9);
        z-index: -1;
        opacity: 0.5;
    }

    50% {
        transform: translateX(-20px) translateZ(50px) scale(1.1);
        z-index: 10;
        opacity: 1;
    }
}

@keyframes orbit3d-8 {

    0%,
    100% {
        transform: translateY(0) translateZ(45px) scale(1.05);
        z-index: 10;
        opacity: 1;
    }

    50% {
        transform: translateY(25px) translateZ(-70px) scale(0.8);
        z-index: -1;
        opacity: 0.45;
    }
}

/* Hero Social Links */
.hero-socials {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-socials a {
    width: 44px;
    height: 44px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.hero-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Glow effect behind hero image */
.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: glow-pulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes glow-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Portfolio item visibility for filtering */
.portfolio-item.hidden {
    display: none;
}

/* All Projects Section - Hidden by default */
#all-projects {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#all-projects.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Toggle button state */
.portfolio-cta .btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}