/* Root variables for consistent color theme across the website */
:root {
    --night-blue: #0b1320;    
    --golden-yellow: #f5a623;  
    --warm-orange: #e65100;    
    --dark-brown: #3e2723;     
    --text-light: #ffffff;
    --text-dark: #333333;
    --footer-text-light: #fefefe; 
    --footer-text-muted: #cccccc;  
}

/* Global body styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa; 
    color: var(--text-dark);
    scroll-behavior: smooth;  /* Enables smooth scrolling */
}

/* NAVBAR SECTION */
.navbar {
    transition: all 0.4s ease-in-out;  /* Smooth transition on scroll */
    padding: 20px 0;
    background-color: transparent;
}

/* Navbar links and brand styling */
.navbar .nav-link, .navbar-brand {
    color: var(--text-light) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Navbar style after scrolling */
.navbar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
}

/* Change text color after scroll */
.navbar.scrolled .nav-link, .navbar.scrolled .navbar-brand {
    color: var(--text-dark) !important;
}

/* Highlighted logo text */
.navbar-brand span {
    color: var(--golden-yellow); 
}

/* LOGO styling ---> log(nishant) */
.bracket-color {
    color: var(--text-light); 
    transition: color 0.4s ease-in-out;
}

/* Change logo color on scroll */
.navbar.scrolled .bracket-color {
    color: var(--text-dark) !important; 
}

/* HERO SECTION */
.hero {
    height: 100vh;

    /* Gradient overlay + background image */
    background: linear-gradient(
        135deg, 
        rgba(11, 19, 32, 0.9) 0%, 
        rgba(230, 81, 0, 0.7) 100%
    ), 
    url('./assets/backgroundImage.jpg') center/cover no-repeat;

    display: flex;
    align-items: center;
    color: var(--text-light);
}

/* Hero heading */
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Hero paragraph */
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Name link styling */
.name-link {
    text-decoration: none; 
    transition: color 0.3s ease;
    transition: opacity 0.3s ease;
}

/* Hover effect for name link */
.name-link:hover {
    opacity: 0.4;
}

/* TYPEWRITER EFFECT */
.css-typewriter {
    color: rgb(246, 177, 143);
    overflow: hidden;        /* Hides text overflow during animation */
    white-space: nowrap;     /* Prevents line wrapping */
    margin: 0;
}

/* FOR LINE ONE */
.line-1 {
    width: 0;

    /* Typing animation for first line */
    animation: 
        typing-1 2s steps(23, end) forwards; 
}

/* FOR SECOND LINE */
.line-2 {
    width: 0;
    margin-left: 2ch;

    /* Delayed typing animation for second line */
    animation: 
        typing-2 1.5s steps(20, end) forwards 2.2s; 
}

/* TYPING ANIMATION - line 1 */
@keyframes typing-1 {
    from { width: 0; }
    to { width: 24ch; } 
}

/* TYPING ANIMATION - line 2 */
@keyframes typing-2 {
    from { width: 0; }
    to { width: 20ch; } 
}

/* SKILL BADGES & ARTICLE BUTTON */
.skill-badge, .article-btn {
    background-color: rgba(245, 166, 35, 0.1); 
    color: var(--warm-orange); 
    border: 2px solid var(--warm-orange); 
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none; 
}

/* Spacing between skill badges */
.skill-badge {
    margin: 5px;
}

/* HOVER EFFECT for badges and buttons */
.skill-badge:hover, .article-btn:hover {
    background-color: var(--warm-orange); 
    color: white; 
}

/* Article card styling */
.auto-generated-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px; 
}

/* Hover effect for article cards */
.auto-generated-card:hover .card {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(68, 52, 1, 0.614) !important;
}

/* FOOTER SECTION */
footer {
    background-color: var(--night-blue);
    color: #aaaaaa;
    padding: 30px 0 20px 0;
}

/* Footer layout container */
.custom-footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between; 
    align-items: flex-start; 
    flex-wrap: wrap; 
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Footer column base styling */
.footer-col {
    flex: 1; 
    min-width: 250px; 
    margin-bottom: 30px; 
    padding: 0 15px; 
}

/* Column alignments */
.footer-col-1 {
    text-align: left; 
}

.footer-col-2 {
    text-align: center;
}

/* Align list inside center column */
.footer-col-2 ul {
    display: inline-block;
    text-align: left; 
}

.footer-col-3 {
    text-align: right;
}

/* Align list inside right column */
.footer-col-3 ul {
    display: inline-block;
    text-align: left; 
}

/* Footer headings */
footer h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 20px;
}

/* Footer text */
footer p {
    color: var(--footer-text-muted);
}

/* Footer links */
footer ul li a {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover effect for footer links */
footer ul li a:hover {
    color: var(--footer-text-light);
    text-decoration: underline; 
}

/* Social icons container */
.social-icons {
    display: flex;
    gap: 15px; 
    justify-content: flex-start; 
}

/* Social icon styling */
.social-icons a {
    color: var(--golden-yellow); 
    background-color: rgba(255,255,255,0.05); 
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover animation for social icons */
.social-icons a:hover {
    background-color: #ffffff;
    color: var(--golden-yellow) !important;
    transform: translateY(-5px) rotate(10deg); 
}

/* Contact info hover effect */
.contact-hover {
    transition: color 0.3s ease;
    cursor: default;
    color: var(--footer-text-muted); 
}

/* Icon styling inside contact section */
.contact-hover i {
    color: var(--golden-yellow); 
    transition: color 0.3s ease;
    margin-right: 15px;
}

/* Hover effect for contact icons */
.contact-hover:hover i {
    color: #ffffff !important; 
}

/* Copyright section styling */
.copyright-row {
    border-top: 3px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    width: 100%;
}

.card-img-left {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-radius: 8px 0 0 8px; 
}