/* ===========================
   ROOT VARIABLES
=========================== */
:root {
    --primary: #0f1f2e;       /* Deep Navy for headings & text */
    --accent: #c9a44c;        /* Muted Gold for highlights & borders */
    --text: #2b2b2b;          
    --bg: #ffffff;             
    --light-bg: #f5f6f7;      
    --font-heading: 'Arial', sans-serif;
    --font-body: 'Helvetica', sans-serif;
}

/* ===========================
   GLOBAL STYLES
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 24px;
    color: var(--primary);
    gap: 10px; /* space between image and text */
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}


/* Navbar links with background and hover */
/* Normal navbar links */
nav a {
    margin-left: 15px;
    color: var(--primary);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover effect: blue background with smooth lift */
nav a:hover {
    background-color: #007BFF; /* blue hover */
    color: #fff;
    transform: translateY(-2px);
}

/* Optional sliding underline on hover */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.btn-outline {
    background-color: var(--accent); /* muted gold to stand out */
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

nav a.btn-outline:hover {
    background-color: #b8913e; /* darker muted gold */
    transform: translateY(-2px);
}

/* ===========================
   HAMBURGER MENU
=========================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* MOBILE NAVIGATION */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    nav#nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: #fff;
        width: 100%;
        flex-direction: column;
        display: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    nav#nav-links.active { display: flex; }
    nav#nav-links a {
        padding: 15px;
        margin: 0;
        border-bottom: 1px solid #eee;
        background: #fff;
        color: var(--primary);
    }
    nav#nav-links a:hover {
        background: var(--accent);
        color: #fff;
    }
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
    padding: 120px 0;
    background: linear-gradient(135deg, #0f1f2e 0%, #1b2a3d 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(201, 164, 76, 0.2);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.8); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative; /* content stays above animated background */
    z-index: 1;
}

.hero h1 {
    font-size: 60px;
    font-weight: 800;
    color: #ffffff;
}

.hero h2 {
    font-size: 36px;
    color: var(--accent);
    margin: 12px 0;
    animation: textGlow 2s infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 4px rgba(201,164,76,0.6); }
    100% { text-shadow: 0 0 14px rgba(201,164,76,1); }
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    color: #e0e0e0;
    margin-top: 20px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 16px 32px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #b8913e;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.btn-secondary {
    border: 2px solid #fff;
    padding: 16px 32px;
    border-radius: 6px;
    color: #fff;
    font-size: 18px;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}


/* ===========================
   SECTION BASE STYLING
=========================== */
.section { padding: 80px 0; }
.light-bg { background: var(--light-bg); }

.section-title {
    font-size: 28px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
    padding-left: 12px;
}

.section-text { max-width: 800px; margin-top: 15px; }

/* ===========================
   CARDS (Skills, Projects, Services, Certifications)
=========================== */
.skills-grid, .cert-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
    margin-top: 30px; 
}

.skill-card, .project-card, .cert-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 20px;
}

.skill-card::before, .project-card::before, .cert-card::before {
    content: '';
    display: block;
    width: 6px;
    height: 100%;
    background: var(--accent);
    border-radius: 6px;
    position: absolute;
    left: 0;
    top: 0;
}

.skill-card:hover, .project-card:hover, .cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15), 0 0 8px rgba(201,164,76,0.3);
}

.skill-card h4, .project-card h4, .cert-card p { 
    font-weight: 600; 
    color: var(--primary); 
    margin-bottom: 12px; 
}

.skill-card p, .project-card .tech, .cert-card p { 
    font-size: 14px; 
    color: #555; 
    line-height: 1.5; 
}

/* ===========================
   PROJECTS SPECIFIC
=========================== */
.project-card .tech { margin-top: 8px; font-size: 14px; color: #666; }
.project-card a.project-link { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 500; }

/* ===========================
   WHY HIRE ME
=========================== */
.hire-list li { margin-bottom: 12px; list-style: disc inside; }

/* ===========================
   CONTACT SECTION
=========================== */
.contact-icons {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 30px;
}

.contact-icon img {
    width: 40px; 
    height: 40px;
    filter: grayscale(50%);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-icon img:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* ===========================
   SCROLL ANIMATION CLASSES
=========================== */
.animate-on-scroll { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.7s ease-out; 
}

.animate-on-scroll.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* ===========================
   FLOATING SCROLL-TO-TOP BUTTON
=========================== */
.scroll-top {
    position: fixed; 
    bottom: 30px; 
    right: 30px;
    background: var(--accent); 
    color: #fff;
    padding: 12px 16px; 
    border-radius: 50%;
    font-size: 22px; 
    display: none; 
    cursor: pointer; 
    z-index: 100;
    transition: background 0.2s ease, transform 0.2s ease;
}

.scroll-top:hover { 
    background: #b8913e; 
    transform: translateY(-3px); 
}

/* ===========================
   FOOTER
=========================== */
.footer {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
}

/* ===========================
   RESPONSIVE STYLING
=========================== */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image { margin-top: 30px; }
    nav a { margin-left: 10px; font-size: 14px; }
    .skills-grid, .cert-grid { grid-template-columns: 1fr; }
}

/* ===========================
   CONTACT FORM
=========================== */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 164, 76, 0.25);
}

.contact-form button {
    align-self: flex-start;
    cursor: pointer;
}

/* ===========================
   ADVANCED SKILLS GRID (3 PER ROW)
=========================== */

.skills-grid.fixed-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

/* Vertical skill card */
.skill-card-vertical {
    background: linear-gradient(
        to bottom,
        rgba(15, 31, 46, 0.92),
        rgba(15, 31, 46, 0.75)
    );
    border-radius: 18px;
    padding: 32px 26px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Accent strip */
.skill-card-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent);
    border-radius: 16px 16px 0 0;
}

.skill-card-vertical:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.4);
}

/* Card heading */
.skill-card-vertical h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 26px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}


/* Skills list */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Individual skill */
.skill-list span {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    color: #1f1f1f;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, background 0.25s ease;
}

.skill-list span:hover {
    transform: translateX(6px);
    background: rgba(201, 164, 76, 0.85);
    color: #000;
}

/* Responsive fallback */
@media (max-width: 1024px) {
    .skills-grid.fixed-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .skills-grid.fixed-3 {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   VERTICAL PROJECT CARDS (3 PER ROW)
=========================== */

.projects-grid.fixed-3-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

/* Project card */
.project-card-vertical {
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Dark overlay for readability */
.project-card-vertical::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 31, 46, 0.88),
        rgba(15, 31, 46, 0.35)
    );
}

/* Hover effect */
.project-card-vertical:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

/* Overlay content */
.project-overlay {
    position: absolute;
    bottom: 0;
    padding: 26px;
    color: #fff;
    z-index: 2;
}

.project-overlay h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-overlay p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #e0e0e0;
}

/* Buttons */
.project-actions {
    display: flex;
    gap: 12px;
}

.btn-project {
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
}

.btn-project:hover {
    background: #b8913e;
    transform: translateY(-2px);
}

/* Responsive fallback */
@media (max-width: 1024px) {
    .projects-grid.fixed-3-projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-grid.fixed-3-projects {
        grid-template-columns: 1fr;
    }
}


/* ===========================
   CERTIFICATES & BADGES CARDS
=========================== */

.cert-grid.fixed-3-certs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

/* Certificate Card */
.cert-card-vertical {
    background: linear-gradient(
        to bottom,
        rgba(15, 31, 46, 0.92),
        rgba(15, 31, 46, 0.75)
    );
    border-radius: 18px;
    padding: 24px 22px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.cert-card-vertical:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

/* Certificate Image */
.cert-card-vertical .cert-img img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 2px solid var(--accent);
}

/* Heading */
.cert-card-vertical h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

/* Info text */
.cert-card-vertical p {
    font-size: 13px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

/* Topics badges */
.cert-card-vertical .cert-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.cert-card-vertical .cert-topics span {
    background: rgba(255,255,255,0.95);
    color: #1f1f1f;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Button */
.cert-card-vertical a.btn-project {
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
}

.cert-card-vertical a.btn-project:hover {
    background: #b8913e;
    transform: translateY(-2px);
}

/* Responsive fallback */
@media (max-width: 1024px) {
    .cert-grid.fixed-3-certs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cert-grid.fixed-3-certs {
        grid-template-columns: 1fr;
    }
}
/* ===========================
   ABOUT ME CARD – Dark Gradient Style
=========================== */
/* ===========================
   ABOUT ME CARD – LARGER TEXT VERSION
=========================== */
.about-card {
    background: linear-gradient(
        to bottom,
        rgba(15, 31, 46, 0.92),
        rgba(15, 31, 46, 0.75)
    );
    border-radius: 18px;
    padding: 50px 40px; /* more padding for readability */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    line-height: 1.9; /* increased line height */
    text-align: justify;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    font-size: 18px; /* larger main text */
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

.about-card .section-title {
    color: #fff;
    border-left: 4px solid var(--accent);
    padding-left: 12px;
    margin-bottom: 28px;
    font-size: 32px; /* larger heading */
}

.about-card .section-text {
    color: #e0e0e0;
    margin-bottom: 22px;
    font-size: 18px; /* matches main font size */
}

/* ===========================
   HIRE ME / WHY WORK WITH ME CARD
=========================== */
.hire-card {
    background: linear-gradient(
        to bottom,
        rgba(15, 31, 46, 0.92),
        rgba(15, 31, 46, 0.75)
    );
    border-radius: 18px;
    padding: 40px 32px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    color: #ffffff;
    text-align: left;
    line-height: 1.8;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hire-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0,0,0,0.35);
}

.hire-card .section-title {
    font-size: 32px;
    color: #fff;
    border-left: 4px solid var(--accent);
    padding-left: 12px;
    margin-bottom: 24px;
}

.hire-card .hire-list {
    list-style: disc inside;
    margin-bottom: 28px;
    font-size: 18px; /* larger text for readability */
}

.hire-card .hire-list li {
    margin-bottom: 14px;
    color: #e0e0e0;
}

.hire-card .hero-actions {
    text-align: center;
}

.hire-card .btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 16px 32px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hire-card .btn-primary:hover {
    background: #b8913e;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* ===========================
   CONTACT CARD
=========================== */
.contact-card {
    background: linear-gradient(
        to bottom,
        rgba(15, 31, 46, 0.95),
        rgba(15, 31, 46, 0.8)
    );
    border-radius: 18px;
    padding: 50px 40px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    color: #ffffff;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0,0,0,0.4);
}

.contact-card .section-title {
    font-size: 32px;
    color: #fff;
    border-left: 4px solid var(--accent);
    padding-left: 12px;
    margin-bottom: 28px;
}

.contact-card .section-text {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 30px;
}

/* ===========================
   CONTACT FORM
=========================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 16px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 4px 12px rgba(201,164,76,0.3);
}

/* ===========================
   CONTACT ICONS
=========================== */
.contact-icons {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px;
    margin-top: 20px;
}

.contact-icon img {
    width: 48px; 
    height: 48px;
    filter: grayscale(50%);
    border-radius: 12px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-icon img:hover {
    transform: scale(1.2);
    filter: grayscale(0%);
}

/* ===========================
   SUBMIT BUTTON
=========================== */
.contact-form .btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background: #b8913e;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}
