/* Style/introduction.css - Bigger Layout to Fill Spaces */

html {
    scroll-behavior: smooth;
}

#introduction-section {
    padding: 0;
    color: var(--text-color);
    overflow: hidden;
    position: relative;
    z-index: 1;
    min-height: 60vh;
}

.introduction-content {
    background-color: var(--bg-color);
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

/* UPDATED: Bigger grid proportions and reduced gap */
.introduction-container {
    display: grid;
    grid-template-columns: 60% 38%; /* Increased from 55% 40% */
    grid-template-areas: "text image";
    gap: 2%; /* Reduced from 5% */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px; /* Reduced padding for more space */
    position: relative;
}

/* ======================================= */
/* GEOMETRIC SHAPES BACKGROUND */
/* ======================================= */

.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* Individual Shape Elements */
.shape {
    position: absolute;
    opacity: 0;
    animation: floatShape 8s ease-in-out infinite;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    border-radius: 50%;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #FFB14E, transparent);
    transform: rotate(45deg);
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.shape-3 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 80px solid rgba(128, 0, 128, 0.15);
    top: 60%;
    left: 8%;
    animation-delay: 2s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent, #FFB14E);
    border-radius: 20px;
    bottom: 15%;
    right: 5%;
    transform: rotate(15deg);
    animation-delay: 3s;
}

.shape-5 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--primary-color), transparent);
    border-radius: 50%;
    top: 40%;
    left: 15%;
    animation-delay: 4s;
}

.shape-6 {
    width: 90px;
    height: 90px;
    background: conic-gradient(from 0deg, #FFB14E, transparent, var(--primary-color));
    border-radius: 50%;
    top: 70%;
    right: 20%;
    animation-delay: 1.5s;
}

.shape-7 {
    width: 140px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    top: 35%;
    right: 8%;
    transform: rotate(-15deg);
    animation-delay: 2.5s;
}

/* Enhanced floating animation */
@keyframes floatShape {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-25px) rotate(2deg);
        opacity: 0.25;
    }
}

/* ======================================= */
/* REVERSIBLE SCROLL ANIMATIONS - BIGGER TEXT */
/* ======================================= */

/* TEXT - SLIDES FROM LEFT - BIGGER */
.intro-text {
    grid-area: text;
    padding: 20px 25px; /* Reduced padding for more content space */
    text-align: left;
    z-index: 3;
    position: relative;
    
    /* INITIAL STATE - Hidden to the left */
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* BIGGER TEXT SIZES */
.intro-text h2 {
    font-size: 2.8rem; /* Increased from 2.5rem */
    font-weight: 800;
    margin-bottom: 25px; /* Increased margin */
    color: var(--primary-color);
    line-height: 1.1; /* Tighter line height for more space */
    background: linear-gradient(135deg, var(--primary-color), #FFB14E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text p {
    font-size: 1.3em; /* Increased from 1.2em */
    line-height: 1.6; /* Slightly reduced for more content */
    margin-bottom: 18px; /* Increased margin */
    color: var(--text-color);
    opacity: 0.9;
}

.intro-text .highlight {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05em; /* Slightly bigger highlights */
}

/* IMAGE - SLIDES FROM RIGHT - BIGGER */
.intro-image {
    grid-area: image;
    padding: 15px; /* Reduced padding for bigger image */
    text-align: center;
    z-index: 3;
    position: relative;
    
    /* INITIAL STATE - Hidden to the right */
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* BIGGER IMAGE */
.intro-image img {
    max-width: 95%; /* Increased from 85% */
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(128, 0, 128, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-image img:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 30px 80px rgba(128, 0, 128, 0.2);
}

/* ======================================= */
/* ANIMATION STATES */
/* ======================================= */

/* ENTERING - Elements slide in */
#introduction-section.animate-in .intro-text {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

#introduction-section.animate-in .intro-image {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

#introduction-section.animate-in .shape {
    opacity: 0.1;
    transform: scale(1);
}

/* EXITING - Elements slide out */
#introduction-section.animate-out .intro-text {
    opacity: 0;
    transform: translateX(-100px);
    transition-delay: 0s;
}

#introduction-section.animate-out .intro-image {
    opacity: 0;
    transform: translateX(100px);
    transition-delay: 0s;
}

#introduction-section.animate-out .shape {
    opacity: 0;
    transform: scale(0.5);
}

/* ======================================= */
/* THEME-AWARE ADJUSTMENTS */
/* ======================================= */

/* Light theme adjustments */
body:not([data-theme="dark"]) .shape {
    opacity: 0.08;
}

body:not([data-theme="dark"]) .shape-1 {
    background: linear-gradient(135deg, #800080, rgba(128, 0, 128, 0.1));
}

body:not([data-theme="dark"]) .shape-2 {
    background: linear-gradient(45deg, #FFB14E, rgba(255, 177, 78, 0.1));
}

body:not([data-theme="dark"]) .shape-3 {
    border-bottom-color: rgba(128, 0, 128, 0.1);
}

body:not([data-theme="dark"]) .intro-image img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Dark theme adjustments */
body[data-theme="dark"] .shape {
    opacity: 0.15;
}

body[data-theme="dark"] .intro-image img {
    box-shadow: 0 20px 60px rgba(255, 177, 78, 0.1);
}

/* ======================================= */
/* RESPONSIVE DESIGN - ADJUSTED FOR BIGGER SIZES */
/* ======================================= */

@media (max-width: 768px) {
    .introduction-container {
        display: block;
        text-align: center;
        padding: 25px 10px; /* Reduced for mobile */
    }
    
    .intro-text {
        width: 100%;
        text-align: center;
        padding: 15px 8px;
        margin-bottom: 25px;
        /* Mobile - slide from top instead */
        transform: translateY(-50px);
    }
    
    .intro-text h2 {
        font-size: 2.2rem; /* Bigger on mobile */
        margin-bottom: 20px;
    }
    
    .intro-text p {
        font-size: 1.15em; /* Bigger on mobile */
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .intro-image {
        width: 100%;
        padding: 15px 8px;
        /* Mobile - slide from bottom instead */
        transform: translateY(50px);
    }
    
    .intro-image img {
        max-width: 92%; /* Slightly smaller on mobile for safety */
    }
    
    /* Mobile animation states */
    #introduction-section.animate-in .intro-text {
        transform: translateY(0);
    }
    
    #introduction-section.animate-in .intro-image {
        transform: translateY(0);
    }
    
    #introduction-section.animate-out .intro-text {
        transform: translateY(-50px);
    }
    
    #introduction-section.animate-out .intro-image {
        transform: translateY(50px);
    }
    
    /* Adjust shapes for mobile */
    .shape-1, .shape-4 { width: 80px; height: 80px; }
    .shape-2, .shape-5 { width: 50px; height: 50px; }
    .shape-3 { 
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 50px solid rgba(128, 0, 128, 0.1);
    }
    .shape-6 { width: 60px; height: 60px; }
    .shape-7 { width: 100px; height: 3px; }
}

@media (max-width: 480px) {
    .introduction-content {
        padding: 60px 0;
    }
    
    .intro-text h2 {
        font-size: 1.9rem; /* Bigger than before */
        line-height: 1.2;
    }
    
    .intro-text p {
        font-size: 1.05em; /* Bigger than before */
    }
    
    .intro-image img {
        max-width: 88%;
    }
    
    /* Hide some shapes on very small screens */
    .shape-3, .shape-5, .shape-7 {
        display: none;
    }
}

/* ======================================= */
/* LARGE SCREENS - EVEN BIGGER */
/* ======================================= */

@media (min-width: 1400px) {
    .introduction-container {
        max-width: 1400px; /* Bigger container */
        padding: 50px 20px;
    }
    
    .intro-text h2 {
        font-size: 3.2rem; /* Even bigger on large screens */
        margin-bottom: 30px;
    }
    
    .intro-text p {
        font-size: 1.4em; /* Bigger paragraphs */
        margin-bottom: 20px;
    }
    
    .intro-image img {
        max-width: 98%; /* Almost full width on large screens */
    }
}
