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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e4e4e4;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.subtitle {
    color: #8892b0;
    font-size: 1.1rem;
}

/* Main Layout - Two Column */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar - Left Column */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.profile-image {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1a1a2e;
}

.about-me h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ccd6f6;
}

.about-me p {
    color: #8892b0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Calculator Section - Right Column */
.calculator-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calculator-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ccd6f6;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #4facfe;
}

.input-wrapper .prefix,
.input-wrapper .suffix {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #8892b0;
    font-weight: 500;
}

.input-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: #e4e4e4;
    font-size: 1rem;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #5a6a8a;
}

.time-inputs {
    display: flex;
    gap: 10px;
}

.time-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    transition: border-color 0.3s ease;
}

.time-input:focus-within {
    border-color: #4facfe;
}

.time-input input {
    width: 100%;
    text-align: center;
    padding: 8px;
    border: none;
    background: transparent;
    color: #e4e4e4;
    font-size: 1.2rem;
    outline: none;
}

.time-input span {
    color: #8892b0;
    font-size: 0.85rem;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    padding: 10px;
    margin-top: 15px;
    display: none;
}

.error-message.show {
    display: block;
}

.results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.results.hidden {
    display: none;
}

.result-card {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.result-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #8892b0;
}

.result-card .price {
    font-size: 1.8rem;
    font-weight: 700;
}

.result-card.call .price {
    color: #4ade80;
}

.result-card.put .price {
    color: #f87171;
}

/* Heat Map Controls */
.heatmap-controls {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.heatmap-controls.hidden {
    display: none;
}

.heatmap-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #f093fb, #f5576c);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.heatmap-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

/* Heat Maps Container - Two column grid layout */
.heatmaps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
}

.heatmaps-container.hidden {
    display: none;
}

/* Individual Heat Map Wrappers */
.heatmap-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.heatmap-wrapper h3 {
    text-align: center;
    color: #ccd6f6;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.heatmap-subtitle {
    text-align: center;
    color: #8892b0;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.heatmap-grid-container {
    position: relative;
    padding: 30px 15px 35px 45px;
}

.y-axis-label {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left center;
    color: #8892b0;
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 500;
}

.x-axis-label {
    text-align: center;
    color: #8892b0;
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 500;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 3px;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 550px;
    margin: 0 auto;
}

.heatmap-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    color: #1a1a2e;
    transition: transform 0.1s ease;
    aspect-ratio: 1 / 1;
}

.heatmap-cell:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.heatmap-cell.header {
    background: rgba(255, 255, 255, 0.1);
    color: #ccd6f6;
    font-weight: 600;
    font-size: 0.8rem;
}

.heatmap-cell.row-header {
    background: rgba(255, 255, 255, 0.1);
    color: #ccd6f6;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Info Card */
.info-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ccd6f6;
}

.info-card p {
    color: #8892b0;
    margin-bottom: 15px;
}

.equation-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.equation {
    margin-bottom: 15px;
}

.equation:last-child {
    margin-bottom: 0;
}

.equation p {
    margin-bottom: 5px;
}

.equation .formula {
    font-family: 'Cambria Math', 'Times New Roman', serif;
    font-size: 1.1rem;
    color: #4facfe;
    padding: 8px 0;
    letter-spacing: 1px;
}

.variables-list {
    list-style: none;
    color: #8892b0;
}

.variables-list li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.variables-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 50%;
}

.variables-list li strong {
    color: #ccd6f6;
}

/* Dark Grey Footer Styles */
.footer-bar {
    background-color: #2d2d2d;
    width: 100%;
    margin-top: 60px;
    padding: 2.5rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links-section h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.quick-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.quick-links a {
    color: #87ceeb;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.quick-links a:hover {
    color: #5fafdb;
    transform: translateY(-2px);
}

.quick-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #87ceeb, #5fafdb);
    transition: width 0.3s ease;
}

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

.footer-credit {
    text-align: center;
}

.footer-credit p {
    color: #8892b0;
    font-size: 0.95rem;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .heatmaps-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .quick-links {
        gap: 2rem;
    }

    .quick-links a {
        font-size: 1rem;
    }

    .footer-links-section h3 {
        font-size: 1.2rem;
    }

    .footer-bar {
        padding: 2rem 0;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    .time-inputs {
        flex-direction: column;
    }

    .results {
        grid-template-columns: 1fr;
    }

    .calculator-card,
    .profile-section {
        padding: 20px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .quick-links {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .footer-links-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .footer-credit p {
        font-size: 0.85rem;
    }
}
