@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #000000 0%, #052e2b 40%, #10b981 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Custom responsive container */
.responsive-container {
    width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .responsive-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .responsive-container {
        max-width: 1024px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1280px) {
    .responsive-container {
        max-width: 1280px;
    }
}

.parallax-bg {
    background: linear-gradient(135deg, #10b981 0%, #000000 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-pattern {
    background-image: radial-gradient(#10b981 1px, transparent 1px);
    background-size: 20px 20px;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    transition: all 0.3s ease;
}

.stats-card {
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-10px) scale(1.02);
}

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

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.6); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Burger menu animation */
.burger-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #052e2b 50%, #10b981 100%) fixed;
    background-attachment: fixed;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.burger-menu.open {
    left: 0;
}

/* Menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 999;
}

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

/* Push content down when menu is open */
.content-pushed {
    margin-top: 300px;
    transition: margin-top 0.3s ease-in-out;
}


/* Dark Mode Styles */
body.light-mode {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 40%, #a7f3d0 100%);
    color: #1f2937;
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.5);
}

body.light-mode .text-white {
    color: #1f2937 !important;
}

body.light-mode .text-gray-200,
body.light-mode .text-gray-300,
body.light-mode .text-gray-100 {
    color: #4b5563 !important;
}

body.light-mode .bg-black\/50,
body.light-mode .bg-black\/40,
body.light-mode .bg-black\/60,
body.light-mode .bg-black\/30 {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
}

body.light-mode .border-white\/10 {
    border-color: rgba(16, 185, 129, 0.2) !important;
}

body.light-mode .burger-menu {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 50%, #a7f3d0 100%);
}

/* Scroll Progress Bar */
#scroll-progress {
    width: 0%;
}

/* Back to Top Button */
#back-to-top.show {
    opacity: 1;
    pointer-events: all;
}

/* Cursor Trail Effect */
#cursor-trail.active {
    opacity: 1;
}

/* Parallax Effect */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

body.light-mode .skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #d1d5db 50%, #e5e7eb 75%);
    background-size: 200% 100%;
}

/* Project Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: linear-gradient(to right, #10b981, #6ee7b7);
    color: white;
    transform: scale(1.05);
}

/* Form Styles */
input:focus,
textarea:focus {
    transform: translateY(-2px);
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Animation */
#theme-toggle i,
#theme-toggle-mobile i {
    transition: transform 0.3s ease;
}

#theme-toggle:hover i,
#theme-toggle-mobile:hover i {
    transform: rotate(20deg);
}

/* Success/Error Messages */
.success-message {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #10b981;
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

/* Responsive adjustments for light mode */
@media (max-width: 768px) {
    body.light-mode {
        background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    }
}

/* Image Loading Effect */
img {
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0.5;
}

img.loaded {
    opacity: 1;
}


/* ========== NEW FEATURES STYLES ========== */

/* Scroll Progress Bar */
#scroll-progress {
    width: 0%;
}

/* Back to Top Button */
#back-to-top.show {
    opacity: 1;
    pointer-events: all;
}

/* Cursor Trail Effect */
#cursor-trail {
    opacity: 0.6; /* Always visible */
}

#cursor-trail.active {
    opacity: 0.6;
    transform: scale(1.2);
}

/* Cursor Points Animation */
#cursor-points {
    width: 0;
    height: 0;
    opacity: 1; /* Always visible */
    transition: opacity 0.3s ease;
}

#cursor-points.active {
    opacity: 1;
}

.cursor-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #10b981, #6ee7b7);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse-point 2s ease-in-out infinite;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Different animation delays for each point */
.cursor-point:nth-child(1) { animation-delay: 0s; }
.cursor-point:nth-child(2) { animation-delay: 0.25s; }
.cursor-point:nth-child(3) { animation-delay: 0.5s; }
.cursor-point:nth-child(4) { animation-delay: 0.75s; }
.cursor-point:nth-child(5) { animation-delay: 1s; }
.cursor-point:nth-child(6) { animation-delay: 1.25s; }
.cursor-point:nth-child(7) { animation-delay: 1.5s; }
.cursor-point:nth-child(8) { animation-delay: 1.75s; }

@keyframes pulse-point {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Light mode cursor points */
body.light-mode .cursor-point {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

body.light-mode #cursor-trail {
    border-color: #059669;
}

/* Cursor trail transition */
#cursor-trail {
    transition: transform 0.2s ease, border-width 0.2s ease, border-color 0.3s ease;
}

/* Dark Mode Styles */
body.light-mode {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 40%, #a7f3d0 100%);
    color: #1f2937;
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

body.light-mode .text-white {
    color: #1f2937 !important;
}

body.light-mode .text-gray-200,
body.light-mode .text-gray-300,
body.light-mode .text-gray-400 {
    color: #4b5563 !important;
}

body.light-mode .text-gray-100 {
    color: #374151 !important;
}

body.light-mode .bg-black\/40,
body.light-mode .bg-black\/50,
body.light-mode .bg-black\/60 {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .bg-black\/30 {
    background: rgba(255, 255, 255, 0.7) !important;
}

body.light-mode .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .border-white\/20 {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-mode .burger-menu {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 50%, #a7f3d0 100%);
}

body.light-mode .menu-overlay {
    background: rgba(0, 0, 0, 0.3);
}

/* Light mode for specific elements */
body.light-mode #preloader {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 50%, #a7f3d0 100%);
}

body.light-mode .bg-gradient-to-br {
    filter: brightness(1.1);
}

/* Project Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: linear-gradient(to right, #10b981, #6ee7b7);
    color: white;
    transform: scale(1.05);
}

/* Project Cards Animation */
.project-card {
    transition: all 0.5s ease;
}

.project-card.hide {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Contact Form Styles */
.form-input,
.form-textarea {
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading Animation for Form */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    animation: slideInUp 0.5s ease;
}

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

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Parallax Effect */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

body.light-mode .skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #d1d5db 50%, #e5e7eb 75%);
    background-size: 200% 100%;
}

/* Hover Effects Enhancement */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* Notification Toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInRight 0.5s ease;
}

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }
}


/* ========== CONTACT FORM STYLES ========== */

.contact-form-card {
    transition: all 0.3s ease;
}

.contact-form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.form-group {
    position: relative;
}

.form-input,
.form-textarea {
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.contact-link {
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: translateX(4px);
}

/* Light Mode Contact Form */
body.light-mode .contact-form-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .contact-form-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.light-mode .form-input,
body.light-mode .form-textarea {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1f2937 !important;
}

body.light-mode .form-input::placeholder,
body.light-mode .form-textarea::placeholder {
    color: #9ca3af !important;
}

body.light-mode .form-input:focus,
body.light-mode .form-textarea:focus {
    background: rgba(16, 185, 129, 0.05) !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

body.light-mode .contact-link {
    background: rgba(16, 185, 129, 0.05) !important;
}

body.light-mode .contact-link:hover {
    background: rgba(16, 185, 129, 0.1) !important;
}

body.light-mode .contact-link .text-gray-400 {
    color: #6b7280 !important;
}

body.light-mode .contact-link .text-white {
    color: #1f2937 !important;
}

/* Form Labels in Light Mode */
body.light-mode .form-group label {
    color: #374151 !important;
}

body.light-mode .form-group label i {
    color: #10b981 !important;
}

/* Contact Info Cards in Light Mode */
body.light-mode .contact-form-card > div > div {
    background: rgba(16, 185, 129, 0.05) !important;
}

body.light-mode .contact-form-card .bg-primary\/10 {
    background: rgba(16, 185, 129, 0.1) !important;
}

body.light-mode .contact-form-card .bg-blue-500\/10 {
    background: rgba(59, 130, 246, 0.1) !important;
}

body.light-mode .contact-form-card .bg-gray-500\/10 {
    background: rgba(107, 114, 128, 0.1) !important;
}

body.light-mode .contact-form-card .text-blue-400 {
    color: #3b82f6 !important;
}

body.light-mode .contact-form-card .text-gray-400 {
    color: #6b7280 !important;
}

/* Button Hover Effect */
.contact-form-card button[type="submit"] {
    position: relative;
    overflow: hidden;
}

.contact-form-card button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-form-card button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form-card {
        padding: 1.5rem;
    }
}


/* ========== FOOTER STYLES ========== */

footer {
    position: relative;
    z-index: 10;
}

/* Light Mode Footer */
body.light-mode footer {
    background: rgba(255, 255, 255, 0.8) !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode footer .text-gray-400 {
    color: #6b7280 !important;
}

body.light-mode footer .bg-white\/5 {
    background: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode footer a:hover {
    background: #10b981 !important;
    color: white !important;
}

body.light-mode footer .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}
