/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* =========================================
   2. NAVIGATION (Glassmorphism)
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    border: none;
    padding: 0;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 5px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #333;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 0 50px;
    gap: 60px;
}

.hero-content {
    max-width: 550px;
    z-index: 2;
}

.greeting {
    font-size: 1.2rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    margin: 10px 0;
    font-weight: 700;
    line-height: 1.1;
    color: #222;
}

.hero .subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 30px;
    display: block; 
}

.typewriter-text {
    border-right: 2px solid #333;
    padding-right: 5px;
    font-weight: 600;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% { border-color: #333; }
    50% { border-color: transparent; }
    100% { border-color: #333; }
}

.btn-primary {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 12px 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.social-icons {
    display: flex;
    gap: 25px;
    font-size: 1.4rem;
    margin-top: 30px;
}

.social-icons a {
    color: #555;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: #000;
    transform: translateY(-3px);
}

.hero-image img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255,255,255,0.5); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.hero-image img:hover {
    filter: grayscale(0%); 
}

.home-footer {
    text-align: center;
    padding: 40px 20px;
    background: #1a1a1a;
    color: #fff;
}

.scroll-down {
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.8;
}
.scroll-down:hover { opacity: 1; }

/* =========================================
   4. SHARED LAYOUTS & ANIMATIONS
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #333;
    margin: 10px auto 0;
}

.section-title p {
    color: #777;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Fade In Up Animation */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* =========================================
   5. ABOUT & SKILLS
   ========================================= */
.services-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 30px;
}

.service-item {
    flex: 1;
    padding: 40px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.skills-container h3 {
    margin: 40px 0 20px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    border-left: 4px solid #333;
    padding-left: 15px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
}

.skill-box {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1 1 120px;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.skill-box i {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.skill-box span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

.adobe-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.4rem;
    font-family: sans-serif;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.au { background: #280058; color: #00f6d8; }
.ai { background: #330000; color: #ff9a00; }
.ps { background: #001e36; color: #31a8ff; }
.ae { background: #00005b; color: #d8a5ff; }

/* =========================================
   6. PORTFOLIO PAGE STYLES
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .overlay h3 {
    transform: translateY(0);
}

/* =========================================
   7. PROJECT MODAL (CASE STUDY LAYOUT)
   ========================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 900px; 
    max-height: 90vh; 
    overflow-y: auto; 
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: left;
    position: relative;
    padding: 0; 
}

.modal.show .modal-content {
    transform: translateY(0);
}

/* Banner Image */
.modal-content img {
    width: 100%;
    height: 350px; 
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: block;
}

/* Body Content */
.modal-body {
    padding: 40px 50px;
}

.modal-content h2 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 5px;
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.modal-content p {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* The <h3> tags inside descriptions */
.modal-content h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 700;
    background: #f4f4f4;
    padding: 8px 15px;
    display: inline-block;
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.close-modal:hover {
    background: #000;
}

.modal-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 30px;
    margin-top: 30px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: #444;
    transform: translateY(-2px);
}

/* =========================================
   8. RESUME PAGE STYLES
   ========================================= */
.resume-paper {
    background: #fff;
    padding: 60px;
    max-width: 850px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 5px;
    color: #333;
}

.resume-header {
    text-align: center;
    margin-bottom: 30px;
}

.resume-main-logo {
    height: 100px; 
    width: auto;
    margin-bottom: 15px;
    display: inline-block;
}

.resume-header h1 {
    font-size: 2.5rem;
    color: #00aaff; 
    margin: 0;
    font-weight: 400;
}

.resume-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 5px;
    color: #444;
}

.resume-contact {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.resume-contact span {
    margin: 0 5px;
}

.resume-links a {
    color: #00aaff;
    font-weight: 600;
    margin: 0 5px;
}

.resume-divider {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 30px 0;
}

.resume-section {
    margin-bottom: 30px;
}

.resume-heading {
    color: #00aaff;
    font-size: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-weight: 400;
}

.resume-item {
    margin-bottom: 15px;
}

.resume-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.resume-date {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 8px;
    font-style: italic;
}

.resume-paper ul {
    list-style-type: disc;
    margin-left: 20px;
    color: #555;
}

.resume-list-simple {
    list-style: none;
    margin-left: 0;
}

.resume-list-simple li {
    margin-bottom: 10px;
}

@media print {
    nav, footer, .modal-btn { display: none !important; }
    body { background: #fff; }
    .resume-paper { box-shadow: none; padding: 0; margin: 0; width: 100%; }
}

/* =========================================
   9. RESPONSIVENESS
   ========================================= */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .hero { gap: 30px; padding: 0 30px; }
    .skills-grid { justify-content: center; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav { padding: 15px 20px; }
    
    nav ul {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    nav ul.show { display: flex; opacity: 1; }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 60px 20px;
        height: auto;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero-content { width: 100%; }
    .hero-image img { width: 220px; height: 220px; }
    .section-padding { padding: 50px 0; }
    .services-grid { flex-direction: column; gap: 40px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .skills-grid { gap: 15px; }
    .skill-box { flex: 1 1 40%; }
    
    /* Modal Mobile */
    .modal-content img { height: 200px; }
    .modal-body { padding: 25px; }
    .modal-content h2 { font-size: 1.5rem; }
    
    /* Resume Mobile */
    .resume-paper { padding: 30px 20px; }
    .resume-header h1 { font-size: 2rem; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 1.8rem; }
    .logo img { height: 60px; }
}
/* ... Keep existing styles ... */

/* NEW: Clean Outline Button Style */
.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #333;
    border: 2px solid #333; /* Clean border matching your theme */
    padding: 12px 35px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 40px; /* Space above the button */
    text-decoration: none;
}

.btn-outline:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-container {
    text-align: center;
    width: 100%;
    margin-bottom: 60px; /* Space below before Skills start */
}


/* =========================================
   10. VIDEO EMBED STYLES
   ========================================= */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}