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

body {
    background: linear-gradient(45deg, #0a192f, #112240);
    color: #fff;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
}



/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header Base Styles */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    z-index: 1000;
    padding: 1rem 20px;
    transition: all 0.3s ease;
}

.header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo Container Adjustments */
.logo-container {
    position: relative;
    z-index: 2;
}

.logo-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.05);
}

.logo-wrapper:active {
    transform: scale(0.95);
}

.logo-symbol {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-letter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #64ffda;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
}

.logo-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-rings span {
    position: absolute;
    border: 2px solid #64ffda;
    border-radius: 50%;
    animation: logoRing 6s linear infinite;
    opacity: 0;
}

.logo-rings span:nth-child(1) {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.logo-rings span:nth-child(2) {
    width: 80%;
    height: 80%;
    animation-delay: -2s;
}

.logo-rings span:nth-child(3) {
    width: 60%;
    height: 60%;
    animation-delay: -4s;
}

.logo-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.logo-particles::before,
.logo-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #64ffda;
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.logo-particles::before {
    left: 20%;
    top: 20%;
    animation-delay: -1.5s;
}

.logo-particles::after {
    right: 20%;
    bottom: 20%;
}

/* Logo Animations */
@keyframes logoRing {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    100% {
        transform: rotate(360deg) scale(1.5);
        opacity: 0;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10px, -10px);
    }
}

/* Navigation Adjustments */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 1rem;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 0.5rem;
    white-space: nowrap;
}

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

.nav-link:hover {
    color: #64ffda;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
}

/* Hamburger Icon */
.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #64ffda;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav-link {
    margin: 15px 0;
}

.mobile-nav-link a {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    padding: 10px 20px;
    display: block;
    transition: color 0.3s ease;
}

.mobile-nav-link a:hover {
    color: #64ffda;
}

/* Body Lock */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Hamburger Animation */
.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mobile-menu-container {
        padding: 1.5rem;
    }

    .mobile-nav-link a {
        font-size: 1.25rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Enhanced Mobile Navigation Links */
.mobile-nav-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-nav-link {
    position: relative;
    padding: 1rem 1.5rem;
    margin: 0.8rem 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mobile-nav-link:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: #64ffda;
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(100, 255, 218, 0.05);
    transform: translateX(5px);
}

.mobile-nav-link:hover:before {
    height: 100%;
}

/* Enhanced Hamburger Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 15px;
    background: rgba(10, 25, 47, 0.8);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.hamburger {
    width: 24px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #64ffda;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Hamburger Animation */
.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Social Links */
.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
    padding: 1rem 0;
}

.mobile-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    color: #64ffda;
    transition: all 0.3s ease;
}

.mobile-social-link:hover {
    background: #64ffda;
    color: #0a192f;
    transform: translateY(-3px);
}

/* Fix for Hero Background Interaction */
.hero {
    position: relative;
    pointer-events: auto;
}

.animated-background {
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* Prevent Interaction Issues */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 10px;
    }

    .header-container {
        padding: 0.5rem;
    }

    .main-nav {
        display: none;
    }

    .logo-wrapper {
        width: 50px;
        height: 50px;
    }

    .logo-letter {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 5px;
    }

    .header-container {
        border-radius: 10px;
    }

    .logo-wrapper {
        width: 40px;
        height: 40px;
    }

    .logo-letter {
        font-size: 1.8rem;
    }
}

/* Header Scroll Effect */
header.scrolled .header-container {
    padding: 0.3rem 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Container Safety */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Prevent Horizontal Overflow */
body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Safe Area for iOS */
@supports (padding: max(0px)) {
    header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* Mobile Menu Container Adjustments */
.mobile-menu-container {
    padding: 5rem 1.5rem 2rem;
    height: 100%;
    overflow-y: auto;
}

.mobile-nav-links {
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

/* Ensure Logo Visibility */
.logo-letter {
    font-size: 2.5rem;
}

/* Animation Performance */
.header-container,
.mobile-menu,
.nav-link::before {
    will-change: transform;
    -webkit-font-smoothing: antialiased;
}

/* Section Styles */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    color: #64ffda;
    position: relative;
}

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

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

nav a {
    color: #fff;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #64ffda;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Header height */
    overflow: hidden;
}

.hero-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Hero Content Styles */
.hero-content {
    z-index: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
}

.glitch {
    position: relative;
    color: #fff;
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                 0.025em 0.04em 0 #fffc00;
    animation: glitch 725ms infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
}

.typing-text {
    margin: 2rem 0;
}

.typing-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}

.typed-text {
    color: #64ffda;
    min-width: 200px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-primary {
    background: #64ffda;
    color: #0a192f;
    border: 2px solid #64ffda;
}

.cta-secondary {
    border: 2px solid #64ffda;
    color: #64ffda;
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.cta-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Hero Image Styles */
.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.circle-effect {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(100, 255, 218, 0.3);
    border-radius: 50%;
    top: -40px;
    right: -40px;
    animation: rotateCircle 20s linear infinite;
}

.dots-effect {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, #64ffda 2px, transparent 2px);
    background-size: 20px 20px;
    animation: floatDots 5s ease-in-out infinite;
}

/* Animated Background for Hero Section */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.animated-background .layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* First layer with moving gradient */
.animated-background .layer-1 {
    background: linear-gradient(
        45deg,
        rgba(100, 255, 218, 0.1) 0%,
        rgba(10, 25, 47, 0.1) 50%,
        rgba(100, 255, 218, 0.1) 100%
    );
    animation: gradientMove 15s linear infinite;
    background-size: 400% 400%;
}

/* Second layer with floating particles */
.animated-background .layer-2 {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(100, 255, 218, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(100, 255, 218, 0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: particlesMove 20s linear infinite;
}

/* Third layer with glowing orbs */
.animated-background .layer-3 {
    opacity: 0.5;
    filter: blur(50px);
}

.glowing-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.2);
    filter: blur(20px);
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
    animation: orbFloat2 15s ease-in-out infinite;
}

/* Animations */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes particlesMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, 100px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-100px, -100px); }
}

/* Enhanced Scroll Indicator */
.scroll-indicator-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    margin-top: auto;
    overflow: hidden;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.scroll-text {
    color: #64ffda;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 2s ease infinite;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #64ffda;
    border-radius: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    animation: borderPulse 2s ease-in-out infinite;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #64ffda;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    animation: scrollWheel 2s infinite;
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.scroll-arrows span {
    width: 10px;
    height: 10px;
    border-right: 2px solid #64ffda;
    border-bottom: 2px solid #64ffda;
    transform: rotate(45deg);
    animation: scrollArrows 2s infinite;
    opacity: 0;
    filter: drop-shadow(0 0 5px #64ffda);
}

/* New Animations */
@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes twinkleBg {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    0% { 
        opacity: 0;
        transform: translateY(-20px);
    }
    50% { 
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes borderPulse {
    0%, 100% { 
        border-color: rgba(100, 255, 218, 1);
        box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
    }
    50% { 
        border-color: rgba(100, 255, 218, 0.5);
        box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
    }
}

@keyframes scrollWheel {
    0% { 
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes scrollArrows {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .hero-container {
        gap: 3rem;
        padding: 2rem;
    }
}

@media screen and (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-content {
        padding-right: 0;
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 400px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .typing-text h2 {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding-top: 60px;
    }

    .cta-buttons {
        flex-direction: column;
        max-width: 300px;
        margin: 2rem auto 0;
    }

    .cta-primary, .cta-secondary {
        width: 100%;
        text-align: center;
    }

    .scroll-indicator-wrapper {
        height: 80px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .typing-text h2 {
        font-size: 1.5rem;
    }

    .image-wrapper {
        border-radius: 20px;
    }

    .circle-effect {
        width: 150px;
        height: 150px;
    }

    .dots-effect {
        width: 100px;
        height: 100px;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .scroll-indicator-wrapper {
        display: none;
    }
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

/* Icon Styles */
.portfolio-icon {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.05);
    overflow: hidden;
}

.portfolio-icon i {
    font-size: 4rem;
    color: #64ffda;
    z-index: 2;
    transition: transform 0.3s ease;
}

.icon-bg {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(
        circle,
        rgba(100, 255, 218, 0.1) 0%,
        rgba(100, 255, 218, 0) 70%
    );
    animation: rotate 10s linear infinite;
}

/* Content Styles */
.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #64ffda;
}

.portfolio-content p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Tech Stack Tags */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    padding: 0.25rem 0.75rem;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    color: #64ffda;
}

/* Hover Effects */
.portfolio-item:hover .portfolio-icon i {
    transform: scale(1.1) rotate(5deg);
}

.portfolio-item:hover .icon-bg {
    animation: rotate 5s linear infinite;
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Random Icon Colors */
.portfolio-item:nth-child(1) .portfolio-icon i {
    color: #FF6B6B;
}

.portfolio-item:nth-child(2) .portfolio-icon i {
    color: #4ECDC4;
}

.portfolio-item:nth-child(3) .portfolio-icon i {
    color: #FFE66D;
}

.portfolio-item:nth-child(4) .portfolio-icon i {
    color: #95E1D3;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .portfolio-icon {
        height: 180px;
    }

    .portfolio-icon i {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .portfolio-icon {
        height: 150px;
    }

    .portfolio-icon i {
        font-size: 2.5rem;
    }

    .portfolio-content {
        padding: 1rem;
    }

    .tech-stack span {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Base Responsive Container */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Responsive Styles */
header {
    padding: 1.5rem 20px;
    width: 100%;
    max-width: 1440px;
    margin: 1rem auto;
}

@media (max-width: 768px) {
    header {
        padding: 1rem 20px;
    }
    
    nav ul {
        display: none; /* Consider adding a mobile menu */
    }
}

/* Hero Section Responsive */
.hero {
    padding: 80px 20px 20px;
    min-height: 100vh;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    padding: 4rem 0;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.image-wrapper {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 4/5;
}

/* Responsive Breakpoints */
@media (max-width: 1440px) {
    .hero-container {
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        padding: 3rem 0;
    }
    
    .cta-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 0;
    }

    .image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-buttons {
        justify-content: center;
        gap: 1rem;
    }
}

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

    .hero-content h2 {
        font-size: 1.25rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-primary, .cta-secondary {
        width: 100%;
        text-align: center;
    }

    .image-wrapper {
        max-width: 250px;
    }
}

@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .image-wrapper {
        max-width: 200px;
    }
}

/* Portfolio Section Responsive */
.portfolio-grid {
    padding: 2rem 20px;
    max-width: 1440px;
    margin: 0 auto;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 1.5rem 20px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Typography Responsive */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

p {
    line-height: 1.6;
}

/* Button Responsive */
.cta-primary, .cta-secondary {
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Navigation Responsive */
nav ul {
    gap: clamp(1rem, 2vw, 2rem);
}

/* Logo Responsive */
.logo-letter {
    font-size: 2.5rem;
}

/* Utility Classes for Spacing */
.section-padding {
    padding: clamp(3rem, 5vw, 5rem) 20px;
}

.margin-bottom {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Glass Effect Responsive */
.glass-effect {
    backdrop-filter: blur(clamp(5px, 2vw, 10px));
}

/* Animation Adjustments for Mobile */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .cta-primary:hover,
    .cta-secondary:hover {
        transform: none;
    }
    
    nav a:hover::after {
        width: 0;
    }
}

/* About Section Styles */
.about-container {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 2fr;
    gap: clamp(2rem, 5vw, 4rem);
    position: relative;
    padding: 2rem 0;
}

/* Image Side Styles */
.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    width: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.effect-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(100, 255, 218, 0.3);
    border-radius: 50%;
    top: -30px;
    right: -30px;
    animation: rotateCircle 10s linear infinite;
}

.effect-dots {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #64ffda 2px, transparent 2px);
    background-size: 15px 15px;
    animation: floatDots 5s ease-in-out infinite;
}

/* Experience Badge */
.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: bold;
    color: #64ffda;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Content Side Styles */
.about-text {
    padding: 2.5rem;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #64ffda;
    margin-bottom: 1rem;
}

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

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.skill-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 1.5rem;
    color: #64ffda;
    margin-bottom: 1rem;
}

.skill-info h4 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #64ffda;
    border-radius: 3px;
    transform-origin: left;
    animation: progressGrow 1.5s ease-out forwards;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #64ffda;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Animations */
@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatDots {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .about-container {
        gap: 3rem;
    }

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

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper {
        max-width: 400px;
    }

    .experience-badge {
        right: 0;
        bottom: -20px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about-text {
        padding: 2rem;
    }

    .skill-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .about-text {
        padding: 1.5rem;
    }

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

    .experience-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 1.5rem;
    }

    .about-image-wrapper {
        max-width: 100%;
    }
}

/* Services Section Updates */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
}

/* Enhanced Service Cards */
.service-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

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

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

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    position: relative;
}

.service-icon i {
    font-size: 2.5rem;
    color: #64ffda;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1) rotate(10deg);
}

.service-card h3 {
    color: #64ffda;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #64ffda;
    border-radius: 2px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.service-features li:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(5px);
}

/* Contact Section Styles */
.contact {
    position: relative;
    min-height: 100vh;
    padding: 80px 0;
    background: linear-gradient(45deg, rgba(10, 25, 47, 0.9), rgba(17, 34, 64, 0.9));
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

.contact .section-title {
    margin-bottom: 50px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.contact-form-wrapper:hover {
    transform: translateY(-5px);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    color: #64ffda;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.form-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: #64ffda;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group textarea + label {
    top: 25px;
    transform: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -25px;
    left: 0;
    color: #64ffda;
    font-size: 0.9rem;
}

/* Enhanced Submit Button */
.submit-btn-wrapper {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(45deg, #64ffda, #00b8a9);
    border: none;
    border-radius: 12px;
    color: #0a192f;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.submit-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;
}

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

.submit-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Contact Info Icons */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-info-item i {
    font-size: 1.5rem;
    color: #64ffda;
}

.contact-info-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item:hover a {
    color: #64ffda;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #64ffda;
    color: #0a192f;
    transform: translateY(-3px) rotate(360deg);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .contact-container {
        padding: 0 15px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .contact-info-item {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .contact {
        padding: 60px 0;
    }

    .contact .section-title {
        font-size: 2rem;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 25px 15px;
    }

    .submit-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 320px) {
    .contact-container {
        padding: 0 10px;
    }

    .form-header h3 {
        font-size: 1.3rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Modern Footer Styles */
.footer {
    position: relative;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.95), rgba(17, 34, 64, 0.98));
    padding: 80px 0 40px;
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(100, 255, 218, 0.08), transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(100, 255, 218, 0.08), transparent 25%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Footer Brand Section */
.footer-brand {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-hover {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    color: #64ffda;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-hover:hover {
    background: #64ffda;
    color: #0a192f;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

/* Footer Sections */
.footer-links,
.footer-contact,
.footer-newsletter {
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
    color: #64ffda;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #64ffda;
    border-radius: 2px;
}

/* Footer Links */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.footer-links ul li a:hover {
    color: #64ffda;
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li i {
    color: #64ffda;
    font-size: 1.1rem;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #64ffda;
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    padding: 12px 20px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 10px;
    color: #64ffda;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #64ffda;
    color: #0a192f;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 40px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-bottom-links a:hover {
    color: #64ffda;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-brand,
    .footer-links,
    .footer-contact,
    .footer-newsletter {
        padding: 20px;
    }
    
    .social-hover {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Section Scroll Margin */
section {
    scroll-margin-top: 70px;
}

/* Contact Form Section Specific Scroll Margin */
section#contact {
    scroll-margin-top: 90px;
}

/* For Safari compatibility */
@supports (-webkit-overflow-scrolling: touch) {
    section {
        scroll-snap-margin-top: 70px; /* Safari-specific fallback */
    }
    
    section#contact {
        scroll-snap-margin-top: 150px; /* Safari-specific fallback for contact section */
    }
}

/* Policy and Terms Pages Styles */
.policy-section,
.terms-section {
    position: relative;
    min-height: calc(100vh - 200px);
    padding-top: 120px;
    overflow: hidden;
}

/* Enhanced Background Effect */
.policy-section::before,
.terms-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(100, 255, 218, 0.05), transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(100, 255, 218, 0.05), transparent 25%);
    animation: backgroundPulse 10s ease-in-out infinite;
    z-index: -1;
}

/* Enhanced Content Container */
.policy-content,
.terms-content {
    position: relative;
    padding: 3rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.policy-content:hover,
.terms-content:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(100, 255, 218, 0.1);
}

/* Animated Border */
.policy-content::before,
.terms-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        45deg,
        rgba(100, 255, 218, 0.2),
        transparent 40%,
        transparent 60%,
        rgba(100, 255, 218, 0.2)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGlow 4s linear infinite;
}

/* Floating Elements */
.policy-block,
.terms-block {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.policy-block:hover,
.terms-block:hover {
    transform: translateX(5px);
}

/* Animation Keyframes */
@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .policy-content,
    .terms-content {
        padding: 2rem;
        margin: 0 1rem;
    }

    .policy-block,
    .terms-block {
        padding: 1.25rem;
    }
}

@media screen and (max-width: 480px) {
    .policy-content,
    .terms-content {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .policy-block,
    .terms-block {
        padding: 1rem;
    }
}

/* Ensure Logo is visible on policy/terms pages */
.policy-section .logo-wrapper,
.terms-section .logo-wrapper {
    z-index: 1000;
}

/* Adjust header spacing for policy/terms pages */
.policy-section header,
.terms-section header {
    margin-bottom: 2rem;
}

/* Container Safety */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Prevent Horizontal Overflow */
body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Safe Area for iOS */
@supports (padding: max(0px)) {
    header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

.last-updated {
    color: #64ffda;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-block,
.terms-block {
    margin-bottom: 2.5rem;
}

.policy-block h2,
.terms-block h2 {
    color: #64ffda;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.policy-block h2::after,
.terms-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #64ffda;
    border-radius: 2px;
}

.policy-block h3,
.terms-block h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin: 1rem 0;
}

.policy-block p,
.terms-block p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.policy-block ul,
.terms-block ul {
    list-style: none;
    padding-left: 1.5rem;
}

.policy-block ul li,
.terms-block ul li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    position: relative;
}

.policy-block ul li::before,
.terms-block ul li::before {
    content: '•';
    color: #64ffda;
    position: absolute;
    left: -1.5rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: #64ffda;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .policy-content,
    .terms-content {
        padding: 2rem;
    }

    .policy-block h2,
    .terms-block h2 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .policy-content,
    .terms-content {
        padding: 1.5rem;
    }

    .policy-block,
    .terms-block {
        margin-bottom: 2rem;
    }

    .policy-block h2,
    .terms-block h2 {
        font-size: 1.2rem;
    }

    .policy-block h3,
    .terms-block h3 {
        font-size: 1.1rem;
    }
}

/* Liquid Metal Effect */
.liquid-metal {
    position: relative;
    display: inline-block;
}

.liquid-metal .text-wrapper {
    position: relative;
    display: inline-block;
}

.liquid-metal .text {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #c0c0c0 30%,
        #ffffff 50%,
        #a0a0a0 70%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
    animation: shine 3s linear infinite;
}

.liquid-metal .chrome-edge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.8) 45%,
        transparent 50%
    );
    background-size: 200% 200%;
    animation: shine-sweep 3s linear infinite;
}

.liquid-metal .particles {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.liquid-metal .particles::before,
.liquid-metal .particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: particle-float 3s ease-in-out infinite;
}

.liquid-metal .particles::before {
    left: 10%;
    animation-delay: -1.5s;
}

.liquid-metal .particles::after {
    right: 10%;
}

@keyframes shine {
    0%, 100% {
        filter: brightness(100%) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
    }
    50% {
        filter: brightness(150%) drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.5));
    }
}

@keyframes shine-sweep {
    0% {
        background-position: -100% -100%;
    }
    100% {
        background-position: 100% 100%;
    }
}

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    50% {
        transform: translate(10px, -10px);
        opacity: 1;
    }
}

/* Logo Link Styles */
.logo-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.05);
}

.logo-wrapper:active {
    transform: scale(0.95);
}

/* Footer Logo Specific Styles */
.footer-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.footer-logo .logo-letter {
    font-size: 2rem;
}

/* Enhanced Hover Effects */
.logo-wrapper:hover .logo-letter {
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.8);
}

.logo-wrapper:hover .logo-rings span {
    animation-duration: 4s;
    border-color: rgba(100, 255, 218, 0.8);
}

/* Accessibility Enhancement */
.logo-wrapper:focus {
    outline: none;
    box-shadow: 0 0 0 2px #64ffda;
    border-radius: 50%;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .logo-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .footer-logo {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo .logo-letter {
        font-size: 1.75rem;
    }
}

/* Morphing Text Effect */
.morphing-text {
    position: relative;
    display: inline-block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.morphing-text .text-wrapper {
    position: relative;
    display: inline-block;
    padding: 1rem;
    overflow: hidden;
}

.morphing-text .letters {
    display: inline-block;
    line-height: 1em;
    background: linear-gradient(
        135deg,
        #64ffda 0%,
        #4dc4ff 50%,
        #64ffda 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.morphing-text .letter {
    display: inline-block;
    transform-origin: 50% 100%;
    animation: morphLetter 6s ease-in-out infinite;
}

.morphing-text .letter:nth-child(odd) {
    animation-duration: 8s;
    animation-delay: -1s;
}

.morphing-text .glow {
    position: absolute;
    inset: 0;
    filter: blur(20px);
    opacity: 0;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(100, 255, 218, 0.8),
        transparent 100%
    );
    mix-blend-mode: overlay;
    pointer-events: none;
    transition: opacity 0.3s;
}

.morphing-text:hover .glow {
    opacity: 0.5;
}

.morphing-text .particles {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.morphing-text .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #64ffda;
    filter: blur(1px);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes morphLetter {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    75% {
        transform: translateY(15px) scale(0.9);
        opacity: 0.7;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    50% {
        transform: translate(var(--tx), var(--ty));
        opacity: 0.8;
    }
}

/* Cyber Tech Text Effect */
.cyber-text {
    position: relative;
    display: inline-block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.cyber-text .text-wrapper {
    position: relative;
    display: inline-block;
    padding: 1rem;
}

.cyber-text .text {
    position: relative;
    color: #64ffda;
    text-shadow: 
        0 0 10px rgba(100, 255, 218, 0.5),
        0 0 20px rgba(100, 255, 218, 0.3),
        0 0 30px rgba(100, 255, 218, 0.1);
    animation: textPulse 3s ease-in-out infinite;
}

.cyber-text .glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cyber-text .glitch::before,
.cyber-text .glitch::after {
    content: attr(data-text);
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0a192f;
    clip: rect(0, 900px, 0, 0);
    animation: glitch 3s infinite linear alternate-reverse;
}

.cyber-text .glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    animation-delay: -1s;
}

.cyber-text .glitch::after {
    left: -2px;
    text-shadow: 2px 0 #00fff9;
    animation-delay: -2s;
}

.cyber-text .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(100, 255, 218, 0.1) 50%
    );
    background-size: 100% 4px;
    animation: scanline 0.5s linear infinite;
}

.cyber-text .circuit {
    position: absolute;
    inset: -10px;
    border: 2px solid #64ffda;
    border-radius: 5px;
    clip-path: polygon(
        0 10px, 10px 0,
        calc(100% - 10px) 0, 100% 10px,
        100% calc(100% - 10px), calc(100% - 10px) 100%,
        10px 100%, 0 calc(100% - 10px)
    );
    opacity: 0.5;
}

.cyber-text .circuit::before,
.cyber-text .circuit::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #64ffda;
    border-radius: 50%;
    animation: circuitPulse 2s ease-in-out infinite;
}

.cyber-text .circuit::before {
    top: -10px;
    left: 20%;
}

.cyber-text .circuit::after {
    bottom: -10px;
    right: 20%;
    animation-delay: -1s;
}

@keyframes textPulse {
    0%, 100% {
        color: #64ffda;
        text-shadow: 
            0 0 10px rgba(100, 255, 218, 0.5),
            0 0 20px rgba(100, 255, 218, 0.3),
            0 0 30px rgba(100, 255, 218, 0.1);
    }
    50% {
        color: #4dc4ff;
        text-shadow: 
            0 0 20px rgba(77, 196, 255, 0.5),
            0 0 40px rgba(77, 196, 255, 0.3),
            0 0 60px rgba(77, 196, 255, 0.1);
    }
}

@keyframes glitch {
    0% {
        clip: rect(44px, 9999px, 56px, 0);
    }
    5% {
        clip: rect(12px, 9999px, 23px, 0);
    }
    10% {
        clip: rect(64px, 9999px, 78px, 0);
    }
    15% {
        clip: rect(89px, 9999px, 98px, 0);
    }
    20% {
        clip: rect(32px, 9999px, 45px, 0);
    }
    25% {
        clip: rect(56px, 9999px, 67px, 0);
    }
    30% {
        clip: rect(78px, 9999px, 89px, 0);
    }
    35% {
        clip: rect(23px, 9999px, 34px, 0);
    }
    40% {
        clip: rect(44px, 9999px, 56px, 0);
    }
    45% {
        clip: rect(67px, 9999px, 78px, 0);
    }
    50% {
        clip: rect(89px, 9999px, 98px, 0);
    }
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

@keyframes circuitPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Enhanced Classic Text Effect */
.classic-text {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: "Times New Roman", serif;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(100, 255, 218, 0.3);
    position: relative;
    display: inline-block;
    padding: 1.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Decorative Corner Elements */
.classic-text::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    background: linear-gradient(45deg, #64ffda, transparent 40%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 4s linear infinite;
}

/* Glowing Background Effect */
.classic-text::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(100, 255, 218, 0.15),
        transparent 100px
    );
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
    filter: blur(20px);
}

.classic-text:hover::after {
    opacity: 1;
}

/* Text Styling and Effects */
.classic-text .text {
    position: relative;
    z-index: 2;
    background: linear-gradient(
        45deg,
        #fff 0%,
        #64ffda 50%,
        #fff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: shimmer 3s linear infinite;
}

/* Floating Particles */
.classic-text .particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.classic-text .particles::before,
.classic-text .particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #64ffda;
    border-radius: 50%;
    filter: blur(1px);
    animation: particleFloat 6s ease-in-out infinite;
}

.classic-text .particles::before {
    left: 20%;
    top: 20%;
    animation-delay: -3s;
}

.classic-text .particles::after {
    right: 20%;
    bottom: 20%;
}

/* Glowing Lines */
.classic-text .glow-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    opacity: 0.5;
}

.classic-text .glow-lines::before,
.classic-text .glow-lines::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: #64ffda;
    animation: glowLine 3s ease-in-out infinite;
}

.classic-text .glow-lines::before {
    top: 0;
    right: -100%;
}

.classic-text .glow-lines::after {
    bottom: 0;
    left: -100%;
    animation-delay: -1.5s;
}

/* Animation Keyframes */
@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    50% {
        transform: translate(10px, -10px);
        opacity: 1;
    }
}

@keyframes glowLine {
    0% {
        transform: translateX(0%);
        opacity: 0;
    }
    50% {
        transform: translateX(100%);
        opacity: 1;
    }
    100% {
        transform: translateX(200%);
        opacity: 0;
    }
}

/* Hover State Animations */
.classic-text:hover .text {
    animation: shimmer 2s linear infinite;
}

.classic-text:hover::before {
    animation: borderRotate 2s linear infinite;
}

/* Enhanced Hero Container Background Animation */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    overflow: hidden;
}

/* Animated Background Container */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(45deg, 
            rgba(100, 255, 218, 0.03) 0%,
            transparent 45%,
            rgba(100, 255, 218, 0.03) 100%);
    animation: gradientMove 15s ease infinite;
    z-index: 0;
}

/* Geometric Pattern Overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, rgba(100, 255, 218, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(100, 255, 218, 0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(100, 255, 218, 0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(100, 255, 218, 0.02) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: patternMove 20s linear infinite;
    z-index: 0;
}

/* Floating Orbs */
.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, 
        rgba(100, 255, 218, 0.2),
        transparent 70%);
    top: -150px;
    left: -150px;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at center, 
        rgba(100, 255, 218, 0.15),
        transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, 
        rgba(100, 255, 218, 0.1),
        transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

/* Grid Lines */
.grid-lines {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(100, 255, 218, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100, 255, 218, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 15s linear infinite;
    z-index: 0;
}

/* Ensure hero content stays above animations */
.hero-container {
    position: relative;
    z-index: 1;
}

/* Animation Keyframes */
@keyframes gradientMove {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes patternMove {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
        background-position: 50px 0, 50px 10px, 60px -10px, 40px 0px;
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

/* Add subtle pulse to the entire hero section */
@keyframes heroPulse {
    0%, 100% {
        background-color: rgba(10, 25, 47, 1);
    }
    50% {
        background-color: rgba(10, 25, 47, 0.95);
    }
}

/* Modern Footer with Dynamic Circuit Pattern */
.footer {
    position: relative;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    padding: 80px 0 40px;
    overflow: hidden;
}

/* Circuit Board Pattern */
.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.07;
    pointer-events: none;
}

.circuit-line {
    position: absolute;
    background: var(--accent-color, #64ffda);
}

/* Vertical Lines */
.circuit-line.vertical {
    width: 1px;
    height: 100%;
    animation: pulseOpacity 4s infinite;
}

.circuit-line.vertical:nth-child(1) { left: 10%; animation-delay: -1s; }
.circuit-line.vertical:nth-child(2) { left: 30%; animation-delay: -2s; }
.circuit-line.vertical:nth-child(3) { left: 50%; animation-delay: -3s; }
.circuit-line.vertical:nth-child(4) { left: 70%; animation-delay: -4s; }
.circuit-line.vertical:nth-child(5) { left: 90%; animation-delay: -5s; }

/* Horizontal Lines */
.circuit-line.horizontal {
    width: 100%;
    height: 1px;
    animation: pulseOpacity 4s infinite;
}

.circuit-line.horizontal:nth-child(6) { top: 20%; animation-delay: -1.5s; }
.circuit-line.horizontal:nth-child(7) { top: 40%; animation-delay: -2.5s; }
.circuit-line.horizontal:nth-child(8) { top: 60%; animation-delay: -3.5s; }
.circuit-line.horizontal:nth-child(9) { top: 80%; animation-delay: -4.5s; }

/* Connection Nodes */
.circuit-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color, #64ffda);
    border-radius: 50%;
    animation: nodeGlow 3s infinite;
}

/* Position nodes at line intersections */
.circuit-node:nth-child(1) { left: 10%; top: 20%; animation-delay: -0.5s; }
.circuit-node:nth-child(2) { left: 30%; top: 40%; animation-delay: -1s; }
.circuit-node:nth-child(3) { left: 50%; top: 60%; animation-delay: -1.5s; }
.circuit-node:nth-child(4) { left: 70%; top: 80%; animation-delay: -2s; }
.circuit-node:nth-child(5) { left: 90%; top: 20%; animation-delay: -2.5s; }

/* Energy Pulse Effect */
.energy-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pulse {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-color, #64ffda);
    border-radius: 50%;
    filter: blur(1px);
    animation: pulseMove 8s linear infinite;
}

.pulse:nth-child(1) { left: 10%; animation-delay: -2s; }
.pulse:nth-child(2) { left: 30%; animation-delay: -4s; }
.pulse:nth-child(3) { left: 50%; animation-delay: -6s; }
.pulse:nth-child(4) { left: 70%; animation-delay: -8s; }

/* Gradient Overlay */
.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(100, 255, 218, 0.03) 0%,
        rgba(10, 25, 47, 0.1) 50%
    );
    animation: overlayPulse 8s ease-in-out infinite;
}

/* Animations */
@keyframes pulseOpacity {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes nodeGlow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
    }
    50% { 
        transform: scale(1.5);
        box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
    }
}

@keyframes pulseMove {
    0% { 
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes overlayPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Ensure footer content stays above background */
.footer .container {
    position: relative;
    z-index: 1;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .circuit-line.vertical:nth-child(2),
    .circuit-line.vertical:nth-child(4) {
        display: none;
    }
    
    .circuit-node {
        transform: scale(0.8);
    }
}

@media screen and (max-width: 480px) {
    .circuit-line.vertical:nth-child(3) {
        display: none;
    }
    
    .circuit-node {
        transform: scale(0.6);
    }
    
    .pulse {
        transform: scale(0.8);
    }
}

/* Modern Hero Background */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
}

/* Animated Background Elements */
.aesthetic-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Gradient Blobs */
.gradient-blob {
    position: absolute;
    filter: blur(40px);
    opacity: 0.4;
    mix-blend-mode: soft-light;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    background: radial-gradient(
        circle at center,
        rgba(100, 255, 218, 0.3),
        rgba(100, 255, 218, 0.1) 50%,
        transparent
    );
    animation-delay: -5s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -150px;
    background: radial-gradient(
        circle at center,
        rgba(100, 255, 218, 0.2),
        rgba(100, 255, 218, 0.05) 50%,
        transparent
    );
}

/* Constellation Effect */
.constellation {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #64ffda, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #64ffda, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #64ffda, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #64ffda, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #64ffda, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
    animation: twinkle 4s ease-in-out infinite;
}

/* Light Trails */
.light-trails {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.trail {
    position: absolute;
    height: 2px;
    width: 100px;
    background: linear-gradient(90deg, transparent, #64ffda, transparent);
    animation: trailMove 8s linear infinite;
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.shape {
    position: absolute;
    border: 1px solid rgba(100, 255, 218, 0.3);
    animation: shapeRotate 20s linear infinite;
}

/* Animation Keyframes */
@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes trailMove {
    0% {
        transform: translateX(-100%) translateY(100vh) rotate(-45deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(100%) translateY(0) rotate(-45deg);
        opacity: 0;
    }
}

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

/* Ensure content stays above background */
.hero-container {
    position: relative;
    z-index: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gradient-blob {
        opacity: 0.3;
    }
    
    .blob-1 {
        width: 400px;
        height: 400px;
    }
    
    .blob-2 {
        width: 300px;
        height: 300px;
    }
    
    .constellation {
        background-size: 150px 150px;
    }
}

@media (max-width: 480px) {
    .gradient-blob {
        opacity: 0.2;
    }
    
    .blob-1, .blob-2 {
        width: 250px;
        height: 250px;
    }
}

/* Form Loading State */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f110';
    color: #64ffda;
    font-size: 2rem;
    animation: fa-spin 1s linear infinite;
}

.submit-btn.loading {
    background: rgba(100, 255, 218, 0.1);
    color: transparent;
}

.submit-btn.loading i {
    display: none;
}

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

/* Enhanced Thank You Page Styles */
.thank-you-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    overflow: hidden;
    position: relative;
}

/* Background Effects */
.thank-you-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(100, 255, 218, 0.1) 0%,
        transparent 70%);
    animation: pulseGradient 4s ease-in-out infinite;
}

.circuit-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(100, 255, 218, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100, 255, 218, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
    animation: circuitFloat 20s linear infinite;
}

/* Particle Effects */
.particle-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: var(--size, 8px);
    height: var(--size, 8px);
    background: #64ffda;
    border-radius: 50%;
    filter: blur(2px);
    animation: floatParticle 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

/* Main Content Container */
.thank-you-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.thank-you-content {
    text-align: center;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: contentAppear 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Success Icon Styling */
.success-icon-container {
    position: relative;
    margin-bottom: 2.5rem;
}

.success-icon {
    position: relative;
    display: inline-block;
}

.success-icon i {
    font-size: 5rem;
    color: #64ffda;
    animation: iconPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    z-index: 2;
}

.success-rings {
    position: absolute;
    inset: -20px;
    border: 2px solid #64ffda;
    border-radius: 50%;
    opacity: 0;
    animation: ringsExpand 2s ease-out infinite;
}

.success-sparkles::before,
.success-sparkles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #64ffda;
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

/* Message Content */
.message-content {
    opacity: 0;
    animation: messageAppear 0.5s ease-out 0.3s forwards;
}

.message-content h1 {
    color: #64ffda;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.main-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.sub-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Enhanced Button Styling */
.home-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #64ffda;
    border-radius: 30px;
    color: #64ffda;
    text-decoration: none;
    font-weight: 500;
    overflow: hidden;
    transition: all 0.3s ease;
}

.button-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.button-effect {
    position: absolute;
    inset: 0;
    background: #64ffda;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.home-button:hover {
    color: #0a192f;
}

.home-button:hover .button-effect {
    transform: translateY(0);
}

/* Animations */
@keyframes contentAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes ringsExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translate(
            calc(random() * 200px - 100px),
            calc(random() * 200px - 100px)
        );
        opacity: 0;
    }
}

@keyframes pulseGradient {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes circuitFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-30px);
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .thank-you-content {
        padding: 2.5rem;
    }

    .success-icon i {
        font-size: 4rem;
    }

    .message-content h1 {
        font-size: 2rem;
    }

    .main-message {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .thank-you-content {
        padding: 2rem;
        margin: 1rem;
    }

    .success-icon i {
        font-size: 3.5rem;
    }

    .message-content h1 {
        font-size: 1.8rem;
    }

    .main-message {
        font-size: 1rem;
    }

    .home-button {
        padding: 0.8rem 1.5rem;
    }
}

/* Safe Area Support */
@supports (padding: max(0px)) {
    .thank-you-container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* New Loading Animation Styles */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    z-index: 10;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    z-index: 11;
}

/* Hexagon Loading Animation */
.loading-hexagon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    z-index: 12;
    display: none;
}

.form-loading .loading-hexagon {
    display: block;
}

.hexagon {
    position: absolute;
    width: 40px;
    height: 23px;
    background-color: #64ffda;
    margin: 11.5px 0;
    border-left: solid 4px #64ffda;
    border-right: solid 4px #64ffda;
    animation: hexagonPulse 1.5s ease-in-out infinite;
    opacity: 0;
}

.hexagon:before,
.hexagon:after {
    content: "";
    position: absolute;
    z-index: 1;
    width: 28.28px;
    height: 28.28px;
    transform: scaleY(0.5774) rotate(-45deg);
    background-color: inherit;
    left: 1.8579px;
}

.hexagon:before {
    top: -14.1421px;
    border-top: solid 5.6569px #64ffda;
    border-right: solid 5.6569px #64ffda;
}

.hexagon:after {
    bottom: -14.1421px;
    border-bottom: solid 5.6569px #64ffda;
    border-left: solid 5.6569px #64ffda;
}

/* Multiple Hexagons with Different Delays */
.hexagon:nth-child(1) { animation-delay: 0s; }
.hexagon:nth-child(2) { 
    animation-delay: 0.2s;
    transform: rotate(60deg);
}
.hexagon:nth-child(3) { 
    animation-delay: 0.4s;
    transform: rotate(120deg);
}
.hexagon:nth-child(4) { 
    animation-delay: 0.6s;
    transform: rotate(180deg);
}
.hexagon:nth-child(5) { 
    animation-delay: 0.8s;
    transform: rotate(240deg);
}
.hexagon:nth-child(6) { 
    animation-delay: 1s;
    transform: rotate(300deg);
}

@keyframes hexagonPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Loading Text Animation */
.loading-text {
    position: absolute;
    top: calc(50% + 60px);
    left: 50%;
    transform: translateX(-50%);
    color: #64ffda;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: none;
    z-index: 12;
}

.form-loading .loading-text {
    display: block;
    animation: loadingTextPulse 1.5s ease-in-out infinite;
}

@keyframes loadingTextPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Submit Button Loading State */
.submit-btn.loading {
    background: rgba(100, 255, 218, 0.1);
    color: transparent;
    position: relative;
}

.submit-btn.loading i {
    display: none;
}






