:root {
    /* Colors - Dark Theme */
    --primary-color: #ff0000;
    --secondary-color: #000000;
    --background-color: #121212;
    --text-color: #ffffff;
    --accent-color: #ff3333;
    --card-bg: rgba(18, 18, 18, 0.8);
    --glass-bg: rgba(0, 0, 0, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    position: relative;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.loading-screen.loading {
    opacity: 1;
    pointer-events: auto;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 1000px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 30px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border: 2px solid var(--primary-color);
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: var(--glass-bg);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav {
        width: 95%;
        padding: 0.5rem 1rem;
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1rem);
        right: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        background: rgba(18, 18, 18, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0.8rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 0;
        overflow: hidden;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        opacity: 0;
        transform: translateY(-20px);
    }

    .nav-links.active {
        max-height: 400px;
        padding: 1.5rem;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        width: 100%;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        margin: 0.3rem 0;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-links.active a {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.15s; }
    .nav-links a:nth-child(3) { transition-delay: 0.2s; }
    .nav-links a:nth-child(4) { transition-delay: 0.25s; }
    .nav-links a:nth-child(5) { transition-delay: 0.3s; }

    .nav-links a:hover {
        background: var(--primary-color);
        color: white;
        transform: translateX(5px);
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .nav-links {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .nav-links a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .modal-content {
        width: 95%;
        max-width: 100%;
        margin: 5vh auto;
    }

    .video-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .portfolio-grid,
    .services-grid,
    .testimonials-grid,
    .about-grid,
    .contact-grid {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #121212, #1a1a1a, #2a2a2a, #1a1a1a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 0, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* CTA Button Styles */
.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4);
    background: #ff1a1a;
}

.cta-button:hover::before {
    transform: translateX(100%);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .cta-button {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
    }
}

/* Section Styles */
section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 5rem 1rem;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* Portfolio Section */
.portfolio {
    background: var(--background-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.portfolio-item h3 {
    padding: 1rem;
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 75%;
    max-width: 1200px;
    height: 80vh;
    margin: 5vh auto;
    background: var(--glass-bg);
    border-radius: 15px;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.video-container {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* Services Section */
.services {
    background: var(--background-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2);
}

.service-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.skill-level {
    width: 100%;
    height: 6px;
    background: var(--glass-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-top: auto;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 1s ease;
}

/* Responsive Design for Services */
@media (max-width: 768px) {
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 0;
        gap: 1rem;
        min-width: 250px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 auto;
        width: 85%;
        scroll-snap-align: center;
        min-width: 240px;
        margin: 0 0.5rem;
    }

    .service-card:first-child {
        margin-left: 1rem;
    }

    .service-card:last-child {
        margin-right: 1rem;
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        min-width: 220px;
    }

    .service-card {
        width: 90%;
        min-width: 200px;
    }

    .service-icon {
        font-size: 2.2rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* About Section Base Styles */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

.about-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* Profile Card - Full Width First Row */
.profile-card {
    grid-column: 1 / -1;
    width: 100%;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Skills and Story Cards - Half Width Second Row */
.skills-card, .story-card {
    width: 100%;
}

/* Tools Card - Full Width Third Row */
.tools-card {
    grid-column: 1 / -1;
    width: 100%;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: 
            "profile profile"
            "skills story"
            "tools tools";
    }

    .profile-card {
        grid-area: profile;
    }

    .skills-card {
        grid-area: skills;
    }

    .story-card {
        grid-area: story;
    }

    .tools-card {
        grid-area: tools;
    }

    .profile {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }

    .profile .image-container {
        margin-bottom: 0;
    }

    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Profile Card Animations */
.profile .image-container {
    position: relative;
    transition: transform 0.3s ease;
}

.profile .image-container:hover {
    transform: scale(1.05);
}

.profile .image-container::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulseAnimation 2s infinite;
    opacity: 0;
}

.profile .image-container:hover::after {
    opacity: 1;
}

@keyframes pulseAnimation {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Stats Animation */
.stat-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
}

.stat-item:hover .stat-number,
.stat-item:hover .stat-label {
    color: white;
}

/* Skills Animation */
.skill-item {
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateX(10px);
    background: var(--glass-bg);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.skill-progress {
    position: relative;
    transform-origin: left;
    animation: skillProgress 1.5s ease-out forwards;
}

@keyframes skillProgress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Story Highlights Animation */
.highlight {
    transition: all 0.3s ease;
    cursor: pointer;
}

.highlight:hover {
    transform: translateX(10px);
    background: var(--primary-color);
}

.highlight:hover .highlight-icon,
.highlight:hover .highlight-text {
    color: white;
}

/* Tools Animation */
.tool-item {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.tool-item:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
}

.tool-item:hover::before {
    transform: translateX(100%);
}

.tool-item:hover .tool-icon,
.tool-item:hover .tool-name {
    color: white;
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .about-card:hover {
        transform: translateY(-3px);
    }

    .stat-item:hover,
    .skill-item:hover,
    .highlight:hover,
    .tool-item:hover {
        transform: translateY(-3px);
    }
}

/* Profile Card */
.profile .image-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 3px solid var(--primary-color);
}

.profile .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    place-items: center;
}

.stat-item {
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.stat-label {
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        max-width: 100%;
    }

    .stat-item {
        padding: 0.8rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

/* Skills Card */
.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill-item {
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 10px;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-name {
    font-size: 1.1rem;
    color: var(--text-color);
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Story Card */
.story-content {
    color: var(--text-color);
}

.story-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.story-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.highlight {
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Tools Card */
.tools {
    width: 100%;
    background: var(--glass-bg);
    padding: 5rem 0;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tools h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem;
    width: 100%;
}

.tool-item {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
    flex-direction: column;
    width: 120px;
    height: 120px;
    position: relative;
}

.tool-icon {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tool-name {
    font-size: 1rem;
    color: var(--text-color);
}

/* Responsive Design for Tools Grid */
@media (max-width: 768px) {
    .tools-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
    }

    .tools-grid::-webkit-scrollbar {
        display: none;
    }

    .tool-item {
        flex: 0 0 auto;
        width: 85%;
        scroll-snap-align: center;
        margin-right: 1rem;
    }

    .tool-item:first-child {
        margin-left: 2rem;
    }

    .scroll-indicator {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.5rem;
        opacity: 0.7;
        transition: opacity 0.3s ease;
        z-index: 2;
    }

    .scroll-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--primary-color);
        opacity: 0.3;
        transition: all 0.3s ease;
    }

    .scroll-dot.active {
        opacity: 1;
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .tools-grid {
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .tool-item {
        width: 85%;
        margin-right: 0.8rem;
    }

    .tool-item:first-child {
        margin-left: 1.5rem;
    }
}

/* Contact Section */
.contact {
    background: var(--background-color);
}

.contact-container {
    max-width: 100%;
    margin: 0 auto;
}

.contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-info {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.info-card, .availability-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.info-card:hover, .availability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.info-card h3, .availability-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    background: var(--primary-color);
}

.info-item:hover .info-content h4,
.info-item:hover .info-content p {
    color: white;
}

.info-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: 50%;
}

.info-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.info-content p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
}

.social-icon {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.social-1 {
    color: #7a7a7a;
}

.social-2 {
    color: rgb(255, 72, 87);
}

.social-icon:hover.social-1,
.social-icon:hover.social-2 {
    color: white;
}

/* Availability Card */
.availability-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-zone, .working-hours, .response-time {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.time-zone:hover, .working-hours:hover, .response-time:hover {
    transform: translateX(5px);
    background: var(--primary-color);
}

.time-zone:hover .time-text,
.working-hours:hover .hours-text,
.response-time:hover .response-text {
    color: white;
}

.time-icon, .hours-icon, .response-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: 50%;
}

.time-text, .hours-text, .response-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Contact Form */
.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    margin-top: 1rem;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .info-items {
        gap: 1rem;
    }

    .form {
        gap: 1rem;
    }
}

a:visited{
    text-decoration: none;
}

/* Base Container Styles */
section {
    width: 75%;
    margin: 0 auto;
    padding: 5rem 1rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
    section {
        width: 85%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        width: 95%;
        padding: 3rem 1rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .testimonials-grid {
        min-width: 250px;
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        min-width: 250px;
        padding: 1rem;
    }

    .contact-grid {
        width: 95%;
        margin: 0 auto;
    }

    .contact-form {
        padding: 1.5rem;
        width: 100%;
    }

    .form-actions {
        margin-top: 1.5rem;
        width: 100%;
    }

    .submit-button {
        width: 100%;
        margin-bottom: 1rem;
    }

    .modal-content {
        width: 95%;
        height: 60vh;
        margin: 20vh auto;
    }
}

@media (max-width: 480px) {
    section {
        width: 100%;
        padding: 2rem 0.5rem;
    }

    .services-grid,
    .testimonials-grid {
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .contact-grid {
        width: 95%;
        margin: 0 auto;
    }

    .contact-form {
        padding: 1.5rem;
        width: 100%;
    }

    .form-actions {
        margin-top: 1.5rem;
        width: 100%;
    }

    .submit-button {
        width: 100%;
        margin-bottom: 1rem;
    }

    .modal-content {
        width: 95%;
        height: 60vh;
        margin: 20vh auto;
    }
}

/* Lazy Loading Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    visibility: hidden;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    visibility: hidden;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    visibility: hidden;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
    visibility: hidden;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

/* Add animation delays for staggered effects */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
.fade-in:nth-child(5) { transition-delay: 0.5s; }

/* Fix for images and videos */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Fix for form elements */
input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix for tooltips and popups */
.tooltip, .popup {
    max-width: 100%;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .testimonials {
        padding: 3rem 0;
    }

    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 0;
        gap: 1rem;
        min-width: 250px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .testimonial-card {
        flex: 0 0 auto;
        width: 85%;
        scroll-snap-align: center;
        min-width: 240px;
        margin: 0 0.5rem;
    }

    .testimonial-card:first-child {
        margin-left: 1rem;
    }

    .testimonial-card:last-child {
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials {
        padding: 2rem 0;
    }

    .testimonials-grid {
        min-width: 220px;
    }

    .testimonial-card {
        width: 90%;
        min-width: 200px;
    }
}

/* Scroll Indicators */
.scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 1rem;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.scroll-arrow:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow-left {
    left: 0;
}

.scroll-arrow-right {
    right: 0;
}

@media (min-width: 769px) {
    .scroll-indicator,
    .scroll-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .testimonials-grid:hover .scroll-arrow {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .portfolio-item {
        min-width: 0;
        width: 100%;
    }

    /* Center the last item if it's alone */
    .portfolio-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 0.5rem); /* Same width as other items */
    }

    .video-thumbnail {
        padding-top: 56.25%;
    }

    .portfolio-item h3 {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        gap: 0.8rem;
        padding: 0.5rem;
    }

    .portfolio-item:last-child:nth-child(odd) {
        width: calc(50% - 0.4rem); /* Adjusted for smaller gap */
    }

    .portfolio-item h3 {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
}

.typing-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid white;
    white-space: nowrap;
    animation: blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
}

/* Remove portal-related styles */
.portal,
.portal-container,
.portal-info,
.portal-card,
.process-steps,
.step,
.step-content,
.step-header,
.step-icon,
.step-number,
.step-progress,
.step-progress-bar {
    display: none;
}

/* Testimonials Section */
.testimonials {
    background: var(--background-color);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, var(--primary-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--accent-color) 0%, transparent 50%);
    opacity: 0.05;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: underlineAnimation 2s ease-in-out infinite;
}

@keyframes underlineAnimation {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

.testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 2rem;
    padding: 2rem;
    margin: 0 -2rem;
    width: calc(100% + 4rem);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-grid::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    min-width: 300px;
    margin-right: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.testimonial-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 1rem;
    transform: translateZ(20px);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .quote-icon {
    transform: translateZ(20px) scale(1.1);
    opacity: 0.8;
}

.testimonial-text {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transform: translateZ(10px);
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateZ(15px);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .client-info {
    transform: translateZ(15px) translateY(5px);
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.testimonial-card:hover .client-avatar::before {
    transform: translateX(100%);
}

.client-details h4 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.testimonial-card:hover .client-details h4 {
    color: var(--primary-color);
}

.client-details p {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
    font-size: 0.9rem;
}

.rating {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    transform: translateZ(15px);
}

.star {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.testimonial-card:hover .star {
    transform: scale(1.2);
    animation: starPulse 1s infinite;
}

@keyframes starPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.testimonial-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.6;
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-date {
    opacity: 1;
    transform: translateZ(10px) scale(1.1);
}

.category-badge {
    position: relative;
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    transform: translateZ(15px);
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 0.5rem;
}

.testimonial-card:hover .category-badge {
    transform: translateZ(15px) translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transform: translateZ(10px);
}

.social-proof-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover .social-icon {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: white;
}

.testimonial-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--glass-bg);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 0.5s ease;
}

.testimonial-card:hover .progress-bar {
    width: 100%;
}

@media (max-width: 768px) {
    .testimonials {
        padding: 3rem 1rem;
    }

    .testimonials-grid {
        gap: 1rem;
        padding: 1rem;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }

    .testimonial-card {
        flex: 0 0 85%;
        min-width: 240px;
        margin-right: 1rem;
        padding: 1.5rem;
    }

    .testimonial-card:first-child {
        margin-left: 1rem;
    }

    .testimonial-card:last-child {
        margin-right: 1rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .client-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .client-details h4 {
        font-size: 1rem;
    }

    .client-details p {
        font-size: 0.8rem;
    }

    .category-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .testimonials {
        padding: 2rem 0.5rem;
    }

    .testimonials-grid {
        gap: 0.8rem;
        padding: 0.8rem;
        margin: 0 -0.8rem;
        width: calc(100% + 1.6rem);
    }

    .testimonial-card {
        flex: 0 0 90%;
        min-width: 200px;
        margin-right: 0.8rem;
        padding: 1rem;
    }

    .testimonial-card:first-child {
        margin-left: 0.8rem;
    }

    .testimonial-card:last-child {
        margin-right: 0.8rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .client-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .client-details h4 {
        font-size: 0.9rem;
    }

    .client-details p {
        font-size: 0.75rem;
    }
}

.scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 1rem;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.scroll-arrow:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow-left {
    left: 0;
}

.scroll-arrow-right {
    right: 0;
}

@media (min-width: 769px) {
    .scroll-indicator,
    .scroll-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .testimonials-grid:hover .scroll-arrow {
        opacity: 1;
    }
}

 
