/* BASE STYLES */
:root {
    /* ELECTRIC PRIMARY COLORS */
    --color-primary: rgba(0, 123, 255, 0.9);         /* Electric blue (pure blue) */
    --color-primary-light: #9CECFF;                  /* Ice blue glow */
    --color-primary-dark: #0047B3;                   /* Deep electric blue */

    /* NEON ACCENTS */
    --color-accent: #00FFE8;                         /* Vibrant cyan-green */
    --color-accent-pearl: #303D3A;                   /* Black pearl (dark contrast) */
    --color-accent-light: #7FFFD4;                   /* Mint laser neon */
    --color-accent-dark: #00806D;                    /* Deep teal */

    /* HIGH-CONTRAST NEUTRALS */
    --color-neutral-light: #E8F0FE;                   /* Very light blueish background */
    --color-neutral-light2: #FBFDFF;                  /* Almost white, cool tone */
    --color-neutral-medium: #64748B;                  /* Medium cool gray */
    --color-neutral-dark: #0A192F;                    /* Very dark night blue */

    /* GLOWING TEXT */
    --color-text-primary: #FFFFFF;                    /* Pure white */
    --color-text-secondary: #A7E8FF;                  /* HUD blue */
    --color-text-placeholder: #7FDBFF;                /* Soft glow */
    --color-text-proposition: #000000;                    /* Pure black */

    /* ULTRA MODERN UI */
    --color-border: rgba(0, 123, 255, 0.6);           /* Neon outline */
    --color-card-bg: rgba(0, 57, 179, 0.99);           /* Holographic blue */
    --color-footer-bg: linear-gradient(135deg, #0a193f 0%, #0c1e3e 100%);

    /* HYPER TRANSITIONS */
    --transition-fast: 0.2s cubic-bezier(0.68, -0.6, 0.32, 1.6);

    /* EXTREME RADIUS */
    --border-radius-round: 32px;

    /* PULSING COLORS */
    --color-highlight: #FF2E63;                        /* Cyberpunk pink */
    --color-success: #00FFA3;                          /* Matrix green */
    --color-warning: #FFD700;                          /* Gold alert */
    --color-error: #FF0033;                            /* Neon red */

    /* GLOW EFFECTS */
    --glow-intensity: 0 0 15px;
    --glow-primary: var(--glow-intensity) rgba(0, 123, 255, 0.7);
    --glow-accent: var(--glow-intensity) rgba(0, 245, 212, 0.7);
}

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

html,body {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-secondary);
    /* for pseudo-element positioning */
    background:
        linear-gradient(
        270deg,
        rgba(255, 255, 255, 0.01) 0%,
        rgba(255, 255, 255, 0.01) 50%,
        rgba(255, 255, 255, 0.01) 100%
        ),
        url('/GosachMavenAISproject/imgs/alexandre-juca-ZOQwKiK47d0-unsplash.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    opacity: 1.0;
    min-height: 100vh;
    overflow-x: hidden;
    transition: filter 0.3s ease;
    backdrop-filter: blur(0.06rem);
}

/* HEADER STYLES */
header {
    background: rgba(0, 127, 255, 0.008);
    backdrop-filter: blur(0.005rem);
    padding: 1.2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cool-circle-area {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(106, 255, 208, 0.25) 50%, rgba(31, 71, 47, 0.30) 100%);
    box-shadow: 0 0 25px rgba(106, 208, 255, 0.5), inset 0 0 20px rgba(209, 224, 232, 0.5);
    animation: pulse-glow 8s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.cool-circle-area:hover {
    transform: scale(1.1);
}

.icon-placeholder {
    font-size: 2.5rem;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s var(--transition-fast), color 0.8s var(--transition-fast);
}

.cool-circle-area:hover .icon-placeholder {
    transform: scale(1.2) rotate(10deg);
}

@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.icon-placeholder.fa-spin {
    animation: slow-spin 8s linear infinite; /* 8 saniyede tam tur, yavaş */
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: #162428;
    padding: 0.5rem 0;
    position: relative;
    font-weight: 500;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    background: var(--color-primary-dark);
    color: var(--color-text-primary);
    border: none;
    border-radius: var(--border-radius-round);
    font-weight: 200;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(110, 232, 184, 0.4);
}

/* MAIN CONTENT */
main {
    flex: 1;
    max-width: 900px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.left-group {
    display: flex;
    align-items: center;
    flex-direction: row; /* make sure items go side-by-side */
    gap: 16px; /* space between logo and weather */
}

.weather-info {
    margin: 0;
    color: navy;
    font-size: 13px;
}

.logo {
    text-align: center;
    margin-bottom: 3rem;
}


.blue-letter {
    color: rgba(32, 136, 255, 1.0);
}

.logo h1 {
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: rgba(0, 246, 224, 1.0);
    opacity: 1.0;
}

.logo p {
    font-family: 'Arial', sans-serif;
    font-size: 0.93rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-weight: normal;
    color: #808488;
    opacity: 1.0;
    border-radius: 120px;
}

:root {
    --color-primary-dark2: #1e3a8a;       /* Dark blue */
    --color-primary2: #3b82f6;            /* Medium bright blue */
    --color-accent2: #10b981;             /* Emerald green */
    --color-accent-perl2: #06b6d4;        /* Turquoise / light blue */
    --color-text-secondary2: #374151;     /* Dark gray-blue */
    --color-text-placeholder2: #9ca3af;   /* Light gray */
    --color-background-light2: #fdfeff;   /* Very light gray */
    --transition-fast2: 0.3s ease;
}

.search-container {
    width: 100%;
    max-width: 800px;
    margin-bottom: 3rem;
    position: relative;
}

.search-box-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
}

.mirror-output {
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 2rem 1rem 4rem;
    background: var(--color-background-light2);
    border: 1px solid rgba(59, 246, 130, 0.2);
    border-top: none;
    border-radius: 0 0 37px 37px;
    color: black;
    box-shadow:
        0 2px 10px rgba(30, 58, 138, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1),
        border-color 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    z-index: 10;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--color-background-light2);
    border-radius: 50px;
    padding: 1.2rem 2rem;
    border: 1px solid rgba(59, 130, 246, 0.3); /* semi-transparent medium blue */
    box-shadow:
        0 2px 10px rgba(30, 58, 138, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1),
        border-color 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
}

.search-box:hover {
    border: 1px solid rgba(59, 130, 246, 0.16); /* semi-transparent medium blue again */
    border-color: var(--color-background-light2);
    box-shadow:
        0 5px 20px rgba(59, 130, 246, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

.search-icon {
    color: var(--color-accent-perl2);
    font-size: 1.3rem;
    margin-right: 1rem;
    transition: color var(--transition-fast2);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.0rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: black;
    padding: 0.5rem 0;
}

.search-input::placeholder {
    color: var(--color-text-placeholder2);
    transition: opacity 0.3s ease;
}

.search-input:focus::placeholder {
    opacity: 0.5;
}

.english-label {
    color: #00FFD1;
    margin-left: 1rem;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background-color: rgba(6, 182, 212, 0);
    transition: background-color var(--transition-fast2), opacity var(--transition-fast2);
    user-select: none;
}

.english-label:hover {
    background-color: rgba(6, 182, 212, 0.1);
    opacity: 1;
}

.search-message {
    text-align: center;
    margin-top: 1rem;
    color: var(--color-accent);
    font-size: 0.95rem;
    opacity: 1;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.search-message.active {
    opacity: 1;
    max-height: 100px;
    margin-top: 1.5rem;
}


/* ENHANCED BUTTONS */
.search-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.search-btn {
    padding: 0.9rem 2.2rem;
    background: var(--color-primary);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 200;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.search-btn:hover {
    background: var(--color-primary);
    transform: translateY(0px);
    box-shadow: 0 5px 15px rgba(110, 232, 184, 0.4);
}

.search-btn:hover::before {
    opacity: 1;
}

.search-btn.primary {
    background: var(--color-primary-dark);
    color: white;
}

.search-btn.primary:hover {
    background: var(--color-primary);
    transform: translateY(0px);
    box-shadow: 0 5px 15px rgba(110, 232, 184, 0.4);
}

/* FLOATING LABEL EFFECT */
.search-box.has-value {
    padding: 1.5rem 2rem 0.8rem 2rem; /* Top padding increased, others fixed */
}

.search-label {
    position: absolute;
    left: 4.5rem;
    top: 1.3rem;
    color: var(--color-text-placeholder);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left center;
    user-select: none;
}

.search-box.has-value .search-label,
.search-input:focus ~ .search-label {
    transform: translateY(-0.8rem) scale(0.85);
    color: var(--color-accent);
}

/* QUICK LINKS */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 700px;
}

.link-card {
    background: var(--color-card-bg);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all var(--transition-fast);
}

.link-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 30px rgba(110, 232, 184, 0.3);
}

.link-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(110, 232, 184, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--color-accent);
    transition: all var(--transition-fast);
}

.link-card:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(110, 232, 184, 0.25);
}

.link-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-primary);
    position: relative;
}

.link-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}

.link-card:hover h3::after {
    width: 100%;
}

.link-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* FOOTER */
.modern-footer {
    background: var(--color-footer-bg, #EEEEEE);
    padding: 3rem 3rem 3rem;
    margin-top: 17rem;
    opacity: 0.99;
    backdrop-filter: blur(10.0rem);
    border-top: 1px solid var(--color-footer-border, #eaeaea); /* Light gray border */
    color: #EEEEEE; /* Default dark gray text */
}

.morld-viewer {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    background: #EEEEEE;
    color: #EEEEEE;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    color: #ccd6f6;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #1a3f6f 0%, #2a5a8f 100%);
}

.footer-links a {
    color: #a8b2d1;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 1.2rem;
    text-decoration: none;
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #64ffda;
    padding-left: 10px;
}

.footer-links a::before {
    position: absolute;
    left: -15px;
    top: 0px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #64ffda;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -5px;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1.0rem;
}

.footer-newsletter p {
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(10, 25, 47, 0.7);
    color: #e6f1ff;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.newsletter-form input::placeholder {
    color: #8892b0;
}

.newsletter-form button {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, #1a3f6f 0%, #2a5a8f 100%);
    color: #0a192f;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: linear-gradient(135deg, #1a3f6f 0%, #2a5a8f 100%);
    color: #0a192f;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(100, 255, 218, 0.2);
    color: #8892b0;
    position: relative;
    z-index: 2;
}

/* ANIMATIONS */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 102, 204, 0.2); /* Subtler blue glow */
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 102, 204, 0.3);
    }
}

@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive (Mobile Compatibility) */
@media (max-width: 1024px) {
    /* General adjustments for tablets and smaller screens */
    header {
        padding: 1rem 1.5rem;
    }
    .nav-links {
        display: none; /* Mobile menu is hidden by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(0, 0, 0, 0.8);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    .nav-links.active {
        display: flex; /* Active when the menu is opened with JavaScript */
    }
    .nav-links a, .nav-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 0;
    }
    .menu-toggle { /* Hamburger menu icon */
        display: block;
        cursor: pointer;
        font-size: 2rem;
        color: var(--color-text-primary);
    }
    main {
        padding: 0 1rem;
    }
    .logo h1 {
        font-size: 2.5rem;
    }
    .logo p {
        padding: 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    /* Specific adjustments for mobile phones */
    .cool-circle-area {
        width: 50px;
        height: 50px;
    }
    .icon-placeholder {
        font-size: 2rem;
    }
    .search-box {
        padding: 1rem;
    }
    .search-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .search-btn {
        width: 100%;
        padding: 0.8rem 2rem;
    }
    .quick-links {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    /* Footer Mobile Layout */
    .modern-footer {
        padding: 2rem 1rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* Stack columns vertically */
        text-align: justify-all;
        gap: 2.5rem;
    }
    .footer-section h3 {
        margin-bottom: 1rem;
    }
    .footer-links a {
        margin-bottom: 0.75rem; /* Tighter spacing */
    }
    .newsletter-form {
        flex-direction: column; /* Stack form elements vertically */
        gap: 0.8rem;
    }
    .newsletter-form input {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .newsletter-form button {
        width: 100%;
    }
    .social-links {
        justify-content: center; /* Center the icons */
    }
    .footer-bottom {
        margin-top: 2rem;
    }
}