:root {
    --primary-color: #1a1a1a;
    --text-color: #ffffff;
    --accent-color: #3498db;
    --accent-color-light: #5dade2;
    --accent-color-rgb: 52, 152, 219;
    --accent-gradient: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
    --hover-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --bounce-easing: cubic-bezier(0.4, 0, 0.2, 1.4);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 80px; /* Height of the fixed header */
    min-height: 100vh;


    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Account Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(15, 15, 25, 0.95));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    font-size: 1rem;
    transition: all 0.3s ease, transform 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

.form-group button {
    width: 48%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group button[type="submit"] {
    background: var(--accent-color);
    color: #ccc;
    margin-right: 4%;
}

.form-group button[type="button"] {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: none;
}

.form-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Navigation Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #1a2a3a; /* Dark blue color */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-color);
}

.logo-icon {
    height: 40px;
    width: auto;
    transition: transform 0.3s var(--bounce-easing);
}

.logo:hover .logo-icon {
    transform: translateY(-2px);
}

.logo span {
    font-size: 1.4rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    color: rgba(0, 0, 0, 0.7) 0, 0, 0.7);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.9;
}

nav ul li a:hover {
    opacity: 1;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

nav ul li a.active {
    opacity: 1;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

nav ul li a.active::after {
    width: 100%;
    left: 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 80%;
}

/* Navigation Auth Elements */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

#login-btn, #logout-btn {
    background: none;
    border: 2px solid transparent;
    color: #ffffff; /* Changed to black */
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}



#login-btn:hover, #logout-btn:hover {
    border-color: var(--accent-color);
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.4);
    transform: translateY(-2px);
}



.user-display {
    color: var(--accent-color);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    z-index: 100;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

.mobile-menu-btn i.fa-times {
    transform: rotate(180deg);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

@media (max-width: 1024px) {
    nav {
        padding: 1rem;
    }

    nav ul {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        color: #000000; /* Changed to black */
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        visibility: hidden;
    }

    nav.active ul {
        left: 0;
        opacity: 1;
        visibility: visible;
    }

    nav ul li {
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
        transition-delay: calc(0.1s * var(--i));
    }

    nav.active ul li {
    transform: translateX(0);
    opacity: 1;
    transition-delay: calc(0.1s * var(--i));
}

    nav.active ul {
        left: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }

    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        margin: 1rem 0;
        width: 100%;
    }

    #login-btn, #logout-btn, .user-display {
        width: 100%;
        text-align: center;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .logo-icon {
        height: 32px;
    }
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

.modal-switch {
    text-align: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.modal-switch a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-switch a:hover {
    text-decoration: underline;
    color: #fff;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.form-group button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    background: var(--accent-gradient);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.form-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-group button[type="button"] {
    background: transparent;
    border: 1px solid var(--accent-color);
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
    text-align: center;
}

/* Navigation Login Elements */
#login-btn, #logout-btn {
    padding: 0.8rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

#login-btn i, #logout-btn i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

#login-btn:hover i {
    transform: translateX(-2px);
}

#logout-btn:hover i {
    transform: translateX(2px);
}

    border: 2px solid transparent;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

#login-btn::before, #logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

#login-btn:hover::before, #logout-btn:hover::before {
    left: 100%;
}

#login-btn:hover, #logout-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    background: linear-gradient(135deg, #ff6b6b, var(--accent-color));
}

#logout-btn {
    display: none;
    background: transparent;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.1);
}

#logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(var(--accent-color-rgb), 0.1));
    border-color: #ff6b6b;
}

#user-display {
    color: var(--primary-color);
    margin-left: 1rem;
    font-size: 0.9rem;
    display: none;
}

html {
    scroll-behavior: smooth;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header and Navigation */
header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    box-shadow: 0 2px 5px var(--shadow-color);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.logo-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(360deg);
}

.logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

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

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/video/background.svg');
    opacity: 0.1;
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.15; }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

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

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

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-text .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e6e6e6;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: slideInLeft 1s ease-out 0.5s forwards;
    opacity: 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.feature span {
    color: #ffffff;
    font-size: 1rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    animation: slideInRight 1s ease-out 0.8s forwards;
    opacity: 0;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--accent-color);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.cta-button.secondary:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature i {
        font-size: 1.25rem;
    }

    .feature span {
        font-size: 0.9rem;
    }
}
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/video/background.svg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-gradient);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 5rem 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
    color: var(--text-color);
}

.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('assets/video/about-bg.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: 0;
    animation: rotateBackground 40s linear infinite;
    transform-origin: center center;
}

@keyframes rotateBackground {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
}

.about-content {
    position: relative;
    z-index: 1;
    background: rgba(26, 26, 26, 0.85);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s var(--bounce-easing);
}

.about-content:hover {
    transform: translateY(-5px);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

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

.skill-item {
    background: var(--hover-color);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.skill-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.skill-item:hover i {
    transform: scale(1.1) rotate(5deg);
}

.skill-item span {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transform-origin: left;
    animation: progressAnimation 1.5s ease-out forwards;
}

@keyframes progressAnimation {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.skill-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover::before {
    opacity: 1;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.services::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background-image: url('assets/video/services-bg.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.5;
    z-index: 0;
    animation: rotateBackground 40s linear infinite;
}

.services-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #e6e6e6;
}

.service-card h3,
.service-card p {
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--accent-color);
}

.service-card:hover p {
    color: #ffffff;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease, color 0.4s ease;
}

.service-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-card p {
    color: #d1d1d1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #ff6b6b;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background-image: url('assets/video/portfolio-bg.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.5;
    z-index: 0;
    animation: rotateBackground 60s linear infinite reverse;
}

.portfolio-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item {
    opacity: 0;
    will-change: transform, opacity;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: all 0.4s var(--bounce-easing);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.portfolio-item:hover img {
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.08);
}

.portfolio-item:hover::before {
    opacity: 0.2;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(44, 62, 80, 0.95), 
        rgba(44, 62, 80, 0.7) 60%,
        rgba(44, 62, 80, 0.3)
    );
    color: white;
    padding: 2rem 1.5rem;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-overlay h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.portfolio-overlay p {
    color: #e6e6e6;
    font-size: 0.95rem;
    line-height: 1.6;
}

.portfolio-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-overlay::before {
    transform: scaleX(1);
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('assets/video/contact-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact h2 {
    font-size: 4.0rem; /* Increased font size */
    margin-bottom: 5px;
    color: var(--heading-color);
}

.contact .section-subtitle {
    font-size: 1.6rem; /* Increased font size */
    color: var(--text-color-secondary);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    gap: 400px;
    justify-content: center;
    align-items: flex-start;
    flex-direction: row-reverse; /* Move 'Get in Touch' to the left */
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-background);
    color: var(--text-color-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-color-secondary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .submit-button {
    background: var(--accent-gradient);
    color: #fff;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.3);
}

.contact-form .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 200, 255, 0.4);
}

.contact-info {
    flex: 0.7;
    min-width: 200px;
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    margin-top: 60px; /* Adjusted to lower the position further */
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-color-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p i {
    color: var(--accent-color);
    font-size: 1.3rem;
}



@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-form,
    .contact-info {
        width: 100%;
    }
}
.contact {
    background: #f8f9fa;
    padding: 5rem 2rem;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}



.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--accent-gradient);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.submit-button:hover {
    transform: translateY(-2px);
}

.contact-info {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-color);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}


}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

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