/* ==================================
   GOOGLE FONTS IMPORT
   ================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ==================================
   CSS VARIABLES
   ================================== */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #7b2ff7;
    --accent-color: #ff0080;
    --dark-bg: #0a0e27;
    --card-bg: #1a1f3a;
    --text-light: #e0e6ff;
    --text-gray: #8892b0;
}

/* ==================================
   RESET & BASE STYLES
   ================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(123, 47, 247, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(255, 0, 128, 0.08) 0%, transparent 50%);
    z-index: -1;
    animation: bgMove 20s ease-in-out infinite;
}

/* ==================================
   HEADER & NAVIGATION
   ================================== */
header {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.8em;
    letter-spacing: -1px;
    transition: 0.3s;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.navigation {
    display: flex;
    gap: 40px;
}

.navigation a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: 0.3s;
}

.navigation a:hover::after {
    width: 100%;
}

.navigation a:hover {
    color: var(--primary-color);
}

/* ==================================
   SECTIONS
   ================================== */
section {
    padding: 100px 10%;
}

/* ==================================
   HERO SECTION
   ================================== */
.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.main-content {
    z-index: 2;
}

.main h2 {
    color: var(--text-gray);
    font-size: 1.2em;
    font-weight: 400;
    margin-bottom: 10px;
}

.main h2 span {
    display: block;
    margin-top: 15px;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.2;
}

.main h3 {
    color: var(--text-gray);
    font-size: 1.4em;
    font-weight: 400;
    margin: 20px 0 40px;
}

.main-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

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

.main-btn:hover::before {
    left: 100%;
}

.main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.5);
}

/* ==================================
   SOCIAL ICONS
   ================================== */
.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-gray);
    font-size: 1.8em;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(100%);
    transition: 0.3s;
    z-index: -1;
}

.social-icons a:hover::before {
    transform: translateY(0);
}

.social-icons a:hover {
    color: #fff;
    border-color: transparent;
    transform: translateY(-5px);
}

/* ==================================
   ABOUT SECTION
   ================================== */
.about-section {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.6), rgba(10, 14, 39, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 80px 60px;
    margin: 50px 10%;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.about-section h1 {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.about-section h2 {
    color: var(--text-gray);
    font-size: 1.1em;
    font-weight: 400;
    line-height: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-section h2 strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==================================
   TITLE STYLING
   ================================== */
.title {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ==================================
   CONTENT GRID
   ================================== */
.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ==================================
   CARD STYLING
   ================================== */
.card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(10, 14, 39, 0.6));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.3);
}

.card .icon {
    color: var(--primary-color);
    font-size: 3em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 247, 0.1));
    border-radius: 20px;
    transition: 0.3s;
}

.card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 47, 247, 0.2));
}

.info h3 {
    color: var(--text-light);
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
}

.info h4 {
    color: var(--primary-color);
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 10px;
}

.info p {
    color: var(--text-gray);
    font-size: 0.95em;
    line-height: 1.7;
}

/* ==================================
   SECTIONS BACKGROUND
   ================================== */
#services {
    background: rgba(10, 14, 39, 0.5);
    position: relative;
}

.projects {
    background: transparent;
}

.contact {
    background: rgba(10, 14, 39, 0.5);
}

/* ==================================
   PROJECT CARDS
   ================================== */
.project-card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.9), rgba(10, 14, 39, 0.7));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 35px;
    min-height: 200px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: 0.5s;
}

.project-card:hover::before {
    opacity: 1;
    transform: rotate(45deg);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.4);
}

.project-info {
    position: relative;
    z-index: 2;
}

.project-category {
    color: var(--text-gray);
    font-size: 0.95em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.project-title span {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-light);
    font-size: 1.2em;
    font-weight: 600;
}

.more-details {
    text-decoration: none;
    color: var(--dark-bg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.more-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

/* ==================================
   FOOTER
   ================================== */
.footer-section {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(10, 14, 39, 0.9));
    backdrop-filter: blur(10px);
    padding: 40px;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-title span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.footer-section .social-icons {
    justify-content: center;
}