/**
* SECTION GRAPHICS & VISUAL ENHANCEMENTS
* Adds abstract graphics, section dividers, and visual interest
* 2025/2026 Modern Design
*/

/* ============================================
  SECTION BACKGROUND GRAPHICS
  ============================================ */
.section-with-graphics {
    position: relative;
    overflow: hidden;
}

.section-with-graphics::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.section-with-graphics::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float 25s ease-in-out infinite reverse;
}

.section-with-graphics > * {
    position: relative;
    z-index: 1;
}

body.dark-mode .section-with-graphics::before,
body.dark-mode .section-with-graphics::after {
    opacity: 0.3;
}

/* ============================================
  SECTION DIVIDERS WITH GRAPHICS
  ============================================ */
.section-divider-graphic {
    position: relative;
    height: 0;
    margin: 0;
    display: none;
    overflow: hidden;
}

.section-divider-graphic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.4) 20%, 
        rgba(118, 75, 162, 0.4) 50%,
        rgba(102, 126, 234, 0.4) 80%,
        transparent 100%);
    transform: translateY(-50%);
}

.section-divider-graphic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.6),
        0 0 40px rgba(118, 75, 162, 0.4);
    animation: pulse 3s ease-in-out infinite;
}

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

/* ============================================
  ABSTRACT GRAPHICS FOR SECTIONS
  ============================================ */
.abstract-graphic {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
}

.graphic-blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    right: 5%;
    animation: blob 20s ease-in-out infinite;
    filter: blur(40px);
}

.graphic-blob-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    bottom: 15%;
    left: 8%;
    animation: blob 25s ease-in-out infinite reverse;
    filter: blur(40px);
}

.graphic-blob-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    top: 50%;
    right: 15%;
    animation: blob 30s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes blob {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
        transform: translate(-15px, 15px) rotate(180deg);
    }
    75% {
        border-radius: 70% 30% 50% 50% / 30% 50% 50% 70%;
        transform: translate(10px, 10px) rotate(270deg);
    }
}

/* ============================================
  ENHANCED PROJECT CARDS WITH GRAPHICS
  ============================================ */
.project-card-with-graphic {
    position: relative;
    overflow: visible;
}

.project-card-with-graphic::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card-with-graphic:hover::before {
    opacity: 1;
}

/* ============================================
  SECTION HEADERS WITH GRAPHICS
  ============================================ */
.section-header-graphic {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-header-graphic::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* ============================================
  GRADIENT OVERLAYS FOR SECTIONS
  ============================================ */
.section-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body.dark-mode .section-gradient-overlay {
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
}

/* ============================================
  ICON GRAPHICS FOR SECTIONS
  ============================================ */
.section-icon-graphic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    margin-bottom: 20px;
    position: relative;
}

.section-icon-graphic::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.section-icon-graphic i {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
    position: relative;
}

/* ============================================
  RESPONSIVE DESIGN
  ============================================ */
@media (max-width: 768px) {
    .section-with-graphics::before,
    .section-with-graphics::after {
        width: 300px;
        height: 300px;
    }

    .graphic-blob-1,
    .graphic-blob-2,
    .graphic-blob-3 {
        display: none; /* Hide on mobile for performance */
    }

    .section-divider-graphic {
        height: 80px;
        margin: 60px 0;
    }
}

/* ============================================
  ACCESSIBILITY
  ============================================ */
@media (prefers-reduced-motion: reduce) {
    .section-with-graphics::before,
    .section-with-graphics::after,
    .graphic-blob-1,
    .graphic-blob-2,
    .graphic-blob-3,
    .section-divider-graphic::after {
        animation: none;
    }
}


/* Focus styles for accessibility - Auto-added */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}
