/*==================================================
 VARIABILI
==================================================*/
:root {
    --primary-color: #2D3748;
    --accent-color: #FF8C42;
    --gradient-start: #2D3748;
    --gradient-end: #4A5A7A;
    --text-light: #FFFFFF;
    --text-dark: #1A202C;
    --transition-speed: 0.3s;
 }
 
 /*==================================================
  RESET E BASE
 ==================================================*/
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
 }
 
 body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding-top: 60px;
    position: relative;
    background: linear-gradient(-45deg, var(--gradient-start), var(--gradient-end));
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
 }
 
 body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.webp');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
 }
 
 a {
    text-decoration: none;
    color: inherit;
 }
 
 ul {
    list-style: none;
 }
 
 img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    user-select: none;
 }
 
 /*==================================================
  CONTAINER E LAYOUT
 ==================================================*/
 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 1;
 }
 
 .row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
 }
 
 .col {
    padding: 10px;
    flex: 1;
 }
 
 /*==================================================
  GRID SYSTEM
 ==================================================*/
 .grid {
    display: grid;
    gap: 1rem;
 }
 
 .grid-2 { grid-template-columns: repeat(2, 1fr); }
 .grid-3 { grid-template-columns: repeat(3, 1fr); }
 .grid-4 { grid-template-columns: repeat(4, 1fr); }
 
 /*==================================================
  UTILITY CLASSES
 ==================================================*/
 .text-center { text-align: center; }
 .text-left { text-align: left; }
 .text-right { text-align: right; }
 
 .d-flex { display: flex; }
 .align-center { align-items: center; }
 .justify-center { justify-content: center; }
 .space-between { justify-content: space-between; }
 
 .hidden { display: none; }
 .visible { display: block; }
 
 .w-100 { width: 100%; }
 .h-100 { height: 100%; }
 
 /* Margins */
 .m-0 { margin: 0; }
 .m-1 { margin: 0.5rem; }
 .m-2 { margin: 1rem; }
 .m-3 { margin: 1.5rem; }
 .m-4 { margin: 2rem; }
 
 .mt-1 { margin-top: 0.5rem; }
 .mt-2 { margin-top: 1rem; }
 .mt-3 { margin-top: 1.5rem; }
 .mt-4 { margin-top: 2rem; }
 
 .mb-1 { margin-bottom: 0.5rem; }
 .mb-2 { margin-bottom: 1rem; }
 .mb-3 { margin-bottom: 1.5rem; }
 .mb-4 { margin-bottom: 2rem; }
 
 /* Paddings */
 .p-0 { padding: 0; }
 .p-1 { padding: 0.5rem; }
 .p-2 { padding: 1rem; }
 .p-3 { padding: 1.5rem; }
 .p-4 { padding: 2rem; }
 
 /*==================================================
  ANIMATIONS
 ==================================================*/
 @keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
 }
 
 @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
 }
 
 .fade-in {
    animation: fadeIn 0.5s ease-in;
 }
 
 @keyframes reflectionMove {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2%, 2%); }
    50% { transform: translate(2%, -2%); }
    75% { transform: translate(-1%, -1%); }
    100% { transform: translate(0, 0); }
 }
 
 /*==================================================
  SCROLL INDICATOR
 ==================================================*/
 .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    text-align: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
 }
 
 .scroll-indicator.hidden {
    opacity: 0;
 }
 
 .scroll-indicator i {
    font-size: 2rem;
    animation: bounce 2s infinite;
 }
 
 .scroll-indicator p {
    margin-top: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
 }
 
 @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
 }
 
 /*==================================================
  MEDIA QUERIES
 ==================================================*/
 @media (max-width: 1200px) {
    .container { max-width: 960px; }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
 }
 
 @media (max-width: 992px) {
    .container { max-width: 720px; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
 }
 
 @media (max-width: 768px) {
    .container { max-width: 540px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    body { padding-top: 60px; }
 }
 
 @media (max-width: 576px) {
    .container { padding: 0 15px; }
    .row { margin: -5px; }
    .col { padding: 5px; }
 }
 
 /* Fix per iOS Safari */
 @supports (-webkit-touch-callout: none) {
    .hero {
        height: -webkit-fill-available;
    }
 }

 /*==================================================
 HERO EFFECTS
==================================================*/
.hero {
    position: relative;
    z-index: 1;
 }
 
 .hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 140, 66, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 140, 66, 0.1) 0%, transparent 50%);
    animation: reflectionMove 15s ease-in-out infinite;
    z-index: -1;
 }
 
 .hero-content {
    position: relative;
    z-index: 2;
 }
 
 /*==================================================
  GRADIENT EFFECTS
 ==================================================*/
 .gradient-text {
    background: linear-gradient(45deg, var(--accent-color), #FFA07A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
 }
 
 .gradient-border {
    position: relative;
 }
 
 .gradient-border::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
 }
 
 /*==================================================
  GLOW EFFECTS
 ==================================================*/
 .glow {
    text-shadow: 0 0 15px rgba(255, 140, 66, 0.3);
 }
 
 .glow-hover:hover {
    text-shadow: 0 0 20px rgba(255, 140, 66, 0.5);
 }
 
 .box-glow {
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.2);
 }
 
 /*==================================================
  BLUR EFFECTS
 ==================================================*/
 .glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
 }
 
 .glass-dark {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
 }
 
 /*==================================================
  HOVER EFFECTS
 ==================================================*/
 .hover-lift {
    transition: transform 0.3s ease;
 }
 
 .hover-lift:hover {
    transform: translateY(-5px);
 }
 
 .hover-scale {
    transition: transform 0.3s ease;
 }
 
 .hover-scale:hover {
    transform: scale(1.05);
 }
 
 .hover-bright {
    transition: filter 0.3s ease;
 }
 
 .hover-bright:hover {
    filter: brightness(1.2);
 }

 /*==================================================
  SECTION STYLES
==================================================*/
section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 140, 66, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 140, 66, 0.05) 0%, transparent 50%);
    animation: reflectionMove 20s ease-in-out infinite;
    z-index: -1;
}

/*==================================================
  BACKGROUND INTERACTIONS
==================================================*/
.interactive-bg {
    position: relative;
}

.interactive-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 140, 66, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.interactive-bg:hover::before {
    opacity: 1;
}

/*==================================================
  PERFORMANCE OPTIMIZATIONS
==================================================*/
.will-change-transform {
    will-change: transform;
}

.hardware-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}