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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 50%, #1a1a1a 100%);
    min-height: 100vh;
}

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

/* Page Content */
.page-content {
    margin-top: 80px;
    min-height: calc(100vh - 200px);
}

/* Hero Sections */
.hero, .about-hero, .info-hero {
    padding: 5rem 0 4rem;
    background: rgba(45, 45, 45, 0.8);
    backdrop-filter: blur(20px);
    margin-bottom: 3rem;
    border-radius: 24px;
    margin-top: 1rem;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-content, .about-content, .info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1, .about-text h1, .info-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ff9f80;
    line-height: 1.1;
}

/* Cursive/Handwriting styles for home page */
.hero-text h1 {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 4rem;
    font-weight: 700;
}


.hero-text p, .about-text p, .info-text p {
    font-size: 1.25rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-text p {
    font-family: 'Kaushan Script', 'Brush Script MT', cursive;
    font-size: 1.4rem;
    font-style: italic;
}

.lead {
    font-size: 1.4rem !important;
    font-weight: 500;
    color: #d0d0d0 !important;
}

/* Images */
.hero-image img, .about-image img, .info-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 107, 71, 0.15);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 159, 128, 0.2);
}

.hero-image img:hover, .about-image img:hover, .info-image img:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 30px 80px rgba(255, 107, 71, 0.25);
}

/* About Page Inline Images */
.about-text img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(255, 159, 128, 0.2);
    border: 2px solid rgba(255, 159, 128, 0.3);
    transition: all 0.4s ease;
    margin: 2rem auto;
    display: block;
}

.about-text img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 60px rgba(255, 159, 128, 0.3);
    border-color: rgba(255, 159, 128, 0.5);
}

/* Create a nice grid for the two images */
.about-text img:first-of-type {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.about-text img:last-of-type {
    margin-top: 1rem;
    margin-bottom: 3rem;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    font-size: 1rem;
}

.btn.primary {
    background: linear-gradient(135deg, #ff9f80, #ff6b47);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 71, 0.3);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 71, 0.4);
    background: linear-gradient(135deg, #ff8a66, #ff5733);
}

.btn.secondary {
    background: white;
    color: #ff6b47;
    border-color: rgba(255, 107, 71, 0.3);
    box-shadow: 0 4px 15px rgba(255, 107, 71, 0.1);
}

.btn.secondary:hover {
    background: rgba(255, 159, 128, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 71, 0.2);
}

/* Feature Cards */
.features, .skills, .info-details {
    padding: 4rem 0;
    background: white;
    border-radius: 24px;
    margin: 3rem 0;
    box-shadow: 0 8px 40px rgba(255, 107, 71, 0.08);
    border: 1px solid rgba(255, 159, 128, 0.1);
}

.feature-grid, .skills-grid, .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card, .skill-card, .info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 159, 128, 0.15);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 71, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before, .skill-card::before, .info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff9f80, #ff6b47);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before, .skill-card:hover::before, .info-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover, .skill-card:hover, .info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(255, 107, 71, 0.15);
    border-color: rgba(255, 159, 128, 0.3);
}

.feature-card h3, .skill-card h3, .info-card h3 {
    color: #2c2c2c;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p, .skill-card p, .info-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

.info-card ul {
    list-style: none;
    margin-top: 1.5rem;
}

.info-card li {
    color: #666;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.info-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ff6b47;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Section Headings */
h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
}

/* h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #ff9f80, #ff6b47);
    border-radius: 2px;
} */

/* Footer */
footer {
    background: rgba(30, 30, 30, 0.9);
    color: #b0b0b0;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 24px 24px 0 0;
    backdrop-filter: blur(20px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: #ff9f80;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-section a:hover {
    color: #ff9f80;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 159, 128, 0.2);
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Design */
/* TODO  */
/* @media (max-width: 768px) { */ 
@media (max-width: 1768px) {
    .hero-content, .about-content, .info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1, .about-text h1, .info-text h1 {
        font-size: 2rem;
    }

    .feature-grid, .skills-grid, .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero, .about-hero, .info-hero {
        padding: 2rem 0;
    }

    .hero-text h1, .about-text h1, .info-text h1 {
        font-size: 1.75rem;
    }

    .hero-text p, .about-text p, .info-text p {
        font-size: 1rem;
    }
}

.substack-frame {
  width: 480px;
  height: 320px;
  border-radius: 12px;
  margin: 40px auto;
  overflow: hidden;        /* IMPORTANT → makes iframe respect rounded corners */
  border: 1px solid #e5e5e5;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.substack-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .skill-card, .info-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Scroll Effects */
html {
    scroll-behavior: smooth;
}

/* Glass Effect Enhancement */
.feature-card, .skill-card, .info-card {
    border: 1px solid rgba(255, 159, 128, 0.18);
    box-shadow: 0 8px 32px 0 rgba(255, 107, 71, 0.1);
}

/* Image Placeholder Styling */
img {
    background: linear-gradient(45deg, #fff8f5, #ffeee8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #ff9f80;
}

/* Additional Modern Touches */
.page-content {
    margin-top: 90px;
    min-height: calc(100vh - 200px);
}

/* Subtle animations for better UX */
.container {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .hero-text h1, .about-text h1, .info-text h1 {
        font-size: 2.5rem;
    }
    
    .hero, .about-hero, .info-hero {
        padding: 3rem 0;
        margin-top: 1rem;
    }
    
    .feature-grid, .skills-grid, .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* About page images responsive */
    .about-text img {
        max-width: 100%;
        height: 250px;
        margin: 1.5rem auto;
    }
    
    .about-text img:first-of-type {
        margin-top: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .about-text img:last-of-type {
        margin-top: 0.5rem;
        margin-bottom: 2rem;
    }
}