/* 
   Neurakraft - Your AI Team. On Demand.
   Main Stylesheet
*/

/* ----------- Base Styles ------------ */
:root {
    /* Main color palette */
/*     --primary-color: #6f42c1;      /* Purple */ 
    --primary-color: #69D4D8;     /*Cyan */
    --secondary-color: #6579E5;      /* #3498db; Blue */
    --tertiary-color: #2ecc71;     /* Green */
    --accent-color-1: #f39c12;     /* Yellow */
    --accent-color-2: #e74c3c;     /* Red */
    --accent-color-3: #e84393;     /* Pink */
    
    /* Background colors */
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-light-dark: #121212;
    
    /* Text colors */
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --text-dark: #333333;
    
    /* Project card colors */
    --project-purple: rgba(111, 66, 193, 0.8);
    --project-green: rgba(46, 204, 113, 0.8);
    --project-blue: rgba(52, 152, 219, 0.8);
    --project-yellow: rgba(243, 156, 18, 0.8);
    --project-pink: rgba(232, 67, 147, 0.8);
    --project-red: rgba(231, 76, 60, 0.8);

    /* Animation speeds */
    --transition-slow: 0.5s;
    --transition-medium: 0.3s;
    --transition-fast: 0.2s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.underline {
    height: 4px;
    width: 70px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* ----------- Utility Classes ------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-medium) ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn i {
    margin-left: 8px;
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.2);
}

.btn-secondary:hover {
    background: rgba(111, 66, 193, 0.1);
}

/* Animation Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ----------- Navigation ------------ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-medium) ease;
    padding: 15px 0;
}

nav.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 10px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition-medium) ease;
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links ul li {
    margin: 0 15px;
}

.nav-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-fast) ease;
    position: relative;
    padding: 5px 0;
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all var(--transition-medium) ease;
}

.nav-links ul li a:hover::after,
.nav-links ul li a.active::after {
    width: 100%;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* ----------- Hero Section ------------ */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) translateX(20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
    }
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

/* Glitch effect */
.glitch {
    color: var(--text-light);
    position: relative;
    animation: glitch 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--primary-color);
    animation: glitch-effect 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
}

.glitch::after {
    color: var(--secondary-color);
    animation: glitch-effect 2s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
    100% {
        transform: translate(0);
    }
}

.tagline {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* Scroll Down Animation */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    padding: 0 20px;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* ----------- About Section ------------ */
.about {
    background-color: var(--bg-light-dark);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--bg-darker);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 75%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.expertise-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: rgba(111, 66, 193, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    transition: all var(--transition-medium) ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(111, 66, 193, 0.2);
}

.expertise-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.expertise-item span {
    font-weight: 500;
}

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: all var(--transition-slow) ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(111, 66, 193, 0.3), rgba(52, 152, 219, 0.3));
    opacity: 0.7;
}

/* ----------- Projects Section ------------ */
.projects {
    background-color: var(--bg-dark);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--bg-light-dark);
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-medium) ease;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-darker);
    z-index: -1;
}

.project-card[data-color="purple"]::before {
    background: linear-gradient(135deg, var(--project-purple), rgba(0, 0, 0, 0.7));
}

.project-card[data-color="green"]::before {
    background: linear-gradient(135deg, var(--project-green), rgba(0, 0, 0, 0.7));
}

.project-card[data-color="blue"]::before {
    background: linear-gradient(135deg, var(--project-blue), rgba(0, 0, 0, 0.7));
}

.project-card[data-color="yellow"]::before {
    background: linear-gradient(135deg, var(--project-yellow), rgba(0, 0, 0, 0.7));
}

.project-card[data-color="pink"]::before {
    background: linear-gradient(135deg, var(--project-pink), rgba(0, 0, 0, 0.7));
}

.project-card[data-color="red"]::before {
    background: linear-gradient(135deg, var(--project-red), rgba(0, 0, 0, 0.7));
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.project-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    transform: translateY(20px);
    opacity: 0.9;
    transition: all var(--transition-medium) ease;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-medium) ease 0.1s;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-medium) ease 0.2s;
}

.project-tags span {
    padding: 5px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-card:hover h3 {
    transform: translateY(0);
}

.project-card:hover p {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-tags {
    transform: translateY(0);
    opacity: 1;
}

/* ----------- Team Section ------------ */
.team {
    background-color: var(--bg-light-dark);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--bg-dark);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 75%);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
}

.team-card {
    width: 100%;
    max-width: 350px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-medium) ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.member-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow) ease;
}

.team-card:hover .member-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.member-info {
    padding: 25px;
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-bio {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.member-social {
    display: flex;
    gap: 15px;
}

.member-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--text-light);
    transition: all var(--transition-fast) ease;
}

.member-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ----------- Contact Section ------------ */
.contact {
    background-color: var(--bg-dark);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--bg-light-dark);
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    padding-top: 5px;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--text-light);
    transition: all var(--transition-fast) ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all var(--transition-medium) ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.input-focus-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all var(--transition-medium) ease;
}

.form-group input:focus ~ .input-focus-effect,
.form-group textarea:focus ~ .input-focus-effect {
    width: 100%;
}

/* ----------- Footer ------------ */
footer {
    background-color: var(--bg-darker);
    padding: 70px 0 0;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 50px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 10px;
    -webkit-text-fill-color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast) ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium) ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        order: -1;
    }
    
    .expertise-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        transition: all var(--transition-medium) ease;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 50px 0;
    }
    
    .nav-links ul li {
        margin: 15px 0;
    }
    
    .nav-links ul li a {
        font-size: 1.2rem;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .expertise-container {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}/* 
   Continued CSS for Neurakraft website
*/

/* Back to Top Button (continued) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium) ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        order: -1;
    }
    
    .expertise-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        transition: all var(--transition-medium) ease;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 50px 0;
    }
    
    .nav-links ul li {
        margin: 15px 0;
    }
    
    .nav-links ul li a {
        font-size: 1.2rem;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .expertise-container {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .team-members {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* Preloader Animation */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--secondary-color), var(--primary-color));
}

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Preloader Animation */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--secondary-color), var(--primary-color));
}

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Project Modal Styles */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium) ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.modal-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    background-color: var(--bg-light-dark);
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    padding: 40px;
    transform: translateY(20px);
    transition: all var(--transition-medium) ease;
    opacity: 0;
    overflow: hidden;
    border: 1px solid rgba(111, 66, 193, 0.3);
}

.project-modal.active .modal-container {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    z-index: 3;
}

.modal-close:hover {
    background-color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 1.2rem;
    color: var(--text-light);
}

.modal-content {
    position: relative;
    z-index: 2;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(111, 66, 193, 0) 70%);
    opacity: 0.1;
    z-index: -1;
}

.modal-content::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-color) 0%, rgba(52, 152, 219, 0) 70%);
    opacity: 0.1;
    z-index: -1;
}

.modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-description {
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.modal-tags span {
    padding: 8px 16px;
    background-color: rgba(111, 66, 193, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast) ease;
}

.modal-tags span:hover {
    background-color: var(--primary-color);
}

.modal-cta {
    margin-top: 20px;
}

/* Add responsive styles for modal */
@media screen and (max-width: 768px) {
    .modal-container {
        padding: 30px;
    }
    
    .modal-content h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .modal-container {
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.8rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }
}

/* Services Section Styles */
.services {
    background-color: var(--bg-dark);
    position: relative;
    padding: 120px 0;
}

.services::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--bg-light-dark);
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 40px 30px;
    transition: all var(--transition-medium) ease;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(111, 66, 193, 0.05), rgba(52, 152, 219, 0.05));
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(111, 66, 193, 0.2);
}

.service-card:hover::before {
    background: linear-gradient(45deg, rgba(111, 66, 193, 0.1), rgba(52, 152, 219, 0.1));
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: linear-gradient(45deg, rgba(111, 66, 193, 0.1), rgba(52, 152, 219, 0.1));
    transition: all var(--transition-medium) ease;
}

.service-icon i {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition-medium) ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover .service-icon i {
    background: var(--text-light);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-light);
    transition: all var(--transition-medium) ease;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-hover {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-medium) ease;
    margin-top: auto;
}

.service-hover i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-hover {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover .service-hover i {
    transform: translateX(5px);
}

/* Responsive styles for services section */
@media screen and (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        min-height: auto;
        padding: 30px 25px;
    }
}

@media screen and (max-width: 480px) {
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
    }
}

.email-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    display: none;
    text-align: center;
    transition: all 0.3s ease;
}

.email-status.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-left: 4px solid #2ecc71;
}

.email-status.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.email-status.loading {
    display: block;
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-left: 4px solid #3498db;
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading span, .btn-loading i {
    visibility: hidden;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
