/* Custom Styles for Vicol Portfolio */

/* Base Styles */
:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #3b82f6;
    --dark-color: #0a0a0a;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden; /* prevent horizontal scroll */
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Ensure the root element also hides overflow */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Prevent any section from causing horizontal overflow */
section {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100vw;
}

/* Ensure Tailwind container does not exceed viewport */
/* Ensure Tailwind container does not cause overflow */
.container {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* Navigation */
nav {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav a {
    transition: all 0.3s ease;
}

/* Hero Section */
#home-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0a0a0a 100%);
    position: relative;
}

#home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

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

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

/* Progress Bars */
.progress-bar {
    transition: width 1s ease-out;
}

/* Contact Form */
#contact-form {
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    transform: scale(1.01);
}

/* Crypto Section */
#crypto-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .text-7xl {
        font-size: 2.5rem;
    }
    
    .text-6xl {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 3D Button */
.btn-3d {
    position: relative;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: all 0.3s ease;
}

.btn-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-3d:active {
    transform: perspective(1000px) rotateX(10deg) rotateY(10deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
