/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Main Content */
.main-content {
    opacity: 1;
    visibility: visible;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    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;
    height: 80px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-accent {
    font-size: 12px;
    font-weight: 300;
    color: #888;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

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

.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;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 1s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: #888;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
    letter-spacing: 0.02em;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
    line-height: 1;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}

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

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

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

/* Features Section */
.features {
    padding: 100px 0;
    background: #111111;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    text-align: center;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 60px;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1 !important;
    visibility: visible !important;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: all 0.3s ease;
    color: #ffffff;
}

.feature-icon i {
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.feature-card:hover .feature-icon i {
    transform: rotate(360deg);
    color: #ffffff;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.feature-card p {
    color: #888;
    line-height: 1.6;
}

/* Showcase Section */
.showcase {
    padding: 100px 0;
    background: #000000;
}

.showcase-section {
    margin-bottom: 150px;
}

.showcase-section h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Parallax Cards */
.parallax-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
    min-height: 250px;
    margin-bottom: 80px;
}

.parallax-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    opacity: 1 !important;
    visibility: visible !important;
}

.parallax-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateZ(5px);
}

.card-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.card-content p {
    color: #888;
    line-height: 1.6;
}

/* Interactive Grid */
.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.grid-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.grid-item::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 ease;
}

.grid-item:hover::before {
    left: 100%;
}

.grid-item:hover {
    transform: scale(1.05) rotate(5deg);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.grid-item:hover .item-content .grid-icon {
    transform: scale(1.2) rotate(360deg);
    color: #ffffff;
}

.item-content {
    text-align: center;
    z-index: 2;
}

.item-content .grid-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    color: #ffffff;
    transition: all 0.3s ease;
    line-height: 1;
}



.item-content span {
    font-weight: 500;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    width: 45%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.timeline-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.timeline-content p {
    color: #888;
    line-height: 1.6;
}

/* Magnetic Effects */
.magnetic {
    transition: transform 0.3s ease;
}

/* 3D Background Canvas */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.3;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: floatAround 20s linear infinite;
    color: #ffffff;
}

.floating-icon i {
    font-size: 2rem;
    color: #ffffff;
    opacity: 0.1;
    transition: all 0.3s ease;
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 15%; animation-delay: 3s; }
.floating-icon:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 6s; }
.floating-icon:nth-child(4) { top: 60%; right: 10%; animation-delay: 9s; }
.floating-icon:nth-child(5) { bottom: 20%; right: 30%; animation-delay: 12s; }
.floating-icon:nth-child(6) { top: 40%; left: 5%; animation-delay: 15s; }

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, -50px) rotate(90deg); }
    50% { transform: translate(50px, -100px) rotate(180deg); }
    75% { transform: translate(-50px, -50px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}



/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: #0a0a0a;
}

.portfolio .section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 60px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.portfolio-item {
    transition: all 0.3s ease;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-image {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.portfolio-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.portfolio-content p {
    color: #888;
    margin-bottom: 25px;
    line-height: 1.6;
    flex: 1;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.portfolio-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-card:hover .tag {
    background: rgba(255, 255, 255, 0.2);
}

.portfolio-cta {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-cta h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.portfolio-cta p {
    color: #888;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #111111;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.contact-info p {
    color: #888;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item .contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    transition: all 0.3s ease;
    line-height: 1;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #ffffff;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: #888;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    font-size: 0.8rem;
    color: #ffffff;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

/* Footer */
.footer {
    background: #000000;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: #888;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a i {
    font-size: 1.2rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-links a:hover i {
    transform: scale(1.2);
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* 3D Cards */
.cards-3d-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.card-3d {
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.card-3d-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.card-3d:hover .card-3d-content {
    transform: rotateY(180deg);
}

.card-3d-front,
.card-3d-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-3d-back {
    transform: rotateY(180deg);
    background: rgba(255, 255, 255, 0.08);
}

.card-3d h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.card-3d p {
    color: #888;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        backdrop-filter: blur(15px);
    }

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

    .nav-menu li {
        margin: 15px 0;
    }

    /* Mobile Hero Section */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        min-width: 200px;
    }

    /* Mobile Features Section */
    .features {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .feature-card {
    padding: 25px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:active::after {
    transform: translateX(100%);
}

.feature-card:active {
    transform: translateY(-3px) scale(0.98) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2) !important;
}

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    /* Mobile Showcase Section */
    .showcase {
        padding: 60px 0;
    }

    .showcase-section {
        margin-bottom: 80px;
    }

    .showcase-section h3 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* Mobile Parallax Cards */
    .parallax-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .parallax-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .card-content h4 {
        font-size: 1.3rem;
    }

    /* Mobile Interactive Grid - Enhanced */
.interactive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 15px;
}

.grid-item {
    border-radius: 15px;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.grid-item::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.6s ease;
}

.grid-item:active::before {
    left: 100%;
}

.grid-item:active {
    transform: scale(0.95) rotate(2deg) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2) !important;
}

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

    .item-content span {
        font-size: 0.9rem;
    }

    /* Mobile Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    /* Mobile Portfolio Section */
    .portfolio {
        padding: 60px 0;
    }

    .portfolio .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
        margin-bottom: 60px;
    }

    .portfolio-card {
        padding: 25px 20px;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        transition: all 0.3s ease !important;
        position: relative;
        overflow: hidden;
    }

    .portfolio-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }

    .portfolio-card:active::after {
        transform: translateX(100%);
    }

    .portfolio-card:active {
        transform: translateY(-3px) scale(0.98) !important;
        background: rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2) !important;
    }

    .portfolio-image {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .portfolio-content h3 {
        font-size: 1.3rem;
    }

    .portfolio-content p {
        font-size: 0.9rem;
    }

    .portfolio-tags {
        gap: 8px;
        margin-bottom: 25px;
    }

    .tag {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .portfolio-cta {
        padding: 40px 0;
    }

    .portfolio-cta h3 {
        font-size: 1.8rem;
    }

    .portfolio-cta p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding: 20px;
        border-radius: 12px;
    }

    .timeline-content h4 {
        font-size: 1.2rem;
    }

    /* Mobile 3D Cards */
    .cards-3d-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .card-3d {
        height: 250px;
    }

    .card-3d-front,
    .card-3d-back {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .card-3d h4 {
        font-size: 1.3rem;
    }



    /* Mobile Contact Section */
    .contact {
        padding: 60px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px;
    }

    .contact-info h3 {
        font-size: 1.8rem;
    }

    /* Mobile Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    /* Mobile Floating Elements - Enhanced for mobile */
.floating-elements {
    display: block !important;
    opacity: 0.3;
}

.floating-icon {
    font-size: 1.5rem;
    opacity: 0.2;
    animation: mobileFloat 8s ease-in-out infinite;
}

@keyframes mobileFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(90deg); }
    50% { transform: translate(15px, -40px) rotate(180deg); }
    75% { transform: translate(-15px, -20px) rotate(270deg); }
}

/* Mobile Background Effects - Enhanced */
.bg-canvas {
    opacity: 0.2;
    display: block !important;
}

.floating-shapes .shape {
    display: block !important;
    opacity: 0.15;
    animation: mobileShapeFloat 10s ease-in-out infinite;
}

@keyframes mobileShapeFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-15px) rotate(180deg) scale(1.1); }
}

    /* Mobile Container */
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .hero-title {
        font-size: 2rem;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .interactive-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .grid-item {
        min-height: 100px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-width: 180px;
    }

    .feature-card {
        padding: 25px 15px;
    }

    .parallax-card {
        padding: 20px 15px;
    }

    .timeline-content {
        padding: 15px;
    }

    .card-3d {
        height: 200px;
    }

    .card-3d-front,
    .card-3d-back {
        padding: 20px 15px;
    }

    .particle-network-container {
        height: 250px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .feature-card:hover,
    .parallax-card:hover,
    .grid-item:hover,
    .timeline-content:hover,
    .card-3d:hover .card-3d-content,
    .btn:hover {
        transform: none;
    }

    /* Disable 3D card effects on touch devices */
    .card-3d {
        pointer-events: none;
    }
    
    .card-3d-content {
        transform: none !important;
        transition: none !important;
    }
    
    .card-3d-front,
    .card-3d-back {
        transform: none !important;
        backface-visibility: visible !important;
    }
    
    .card-3d-back {
        display: none !important;
    }

    /* Increase touch targets */
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .grid-item {
        min-height: 120px;
    }

    .nav-link {
        padding: 10px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Reduce animations for better performance */
    .floating-elements,
    .bg-canvas {
        display: none;
    }

    .shape {
        animation: none;
    }
    
    /* Enhanced mobile parallax effects */
.parallax-card {
    transform: none !important;
    will-change: auto !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

.parallax-card:active {
    transform: scale(0.98) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Enhanced particle network for mobile */
.particle-network-container {
    display: block !important;
    height: 250px !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
}

/* Scroll Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Emoji Support */
* {
    font-family: inherit;
}

/* Ensure emojis display properly across all platforms */
.emoji, 
[data-icon],
.floating-icon,
.feature-icon,
.item-content i,
.contact-item i,
.social-links a,
.grid-emoji,
.contact-emoji,
.btn-emoji,
.social-emoji {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Twemoji Mozilla', 'EmojiOne Color', 'Android Emoji', sans-serif !important;
    -webkit-font-feature-settings: "liga" 1, "kern" 1;
    font-feature-settings: "liga" 1, "kern" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Fallback for older browsers */
@supports not (font-family: 'Apple Color Emoji') {
    .emoji, 
    [data-icon],
    .floating-icon,
    .feature-icon,
    .item-content i,
    .contact-item i,
    .social-links a,
    .grid-emoji,
    .contact-emoji,
    .btn-emoji,
    .social-emoji {
        font-family: 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif !important;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Enhancement Animations */
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes trace-fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Enhanced mobile scroll animations */
@media (max-width: 768px) {
    .feature-card,
    .parallax-card,
    .grid-item,
    .card-3d {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }
    
    .feature-card.animate,
    .parallax-card.animate,
    .grid-item.animate,
    .card-3d.animate {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Glass morphism effects */
    .feature-card,
    .parallax-card,
    .grid-item {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* Enhanced touch feedback */
    .touch-ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: scale(0);
        animation: ripple-animation 0.6s linear;
        pointer-events: none;
        z-index: 1000;
    }
}
