/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Modern Portfolio CSS - Enhanced Ocean Theme */
:root {
    --primary-blue: #0066cc;
    --secondary-blue: #003d7a;
    --accent-cyan: #00ccff;
    --accent-teal: #00bfa5;
    --electric-blue: #007acc;
    --neon-cyan: #00ffff;
    --ocean-blue: #006994;
    --dark-navy: #0a1128;
    --navy: #0d1b2a;
    --midnight: #001a33;
    --text-primary: #ffffff;
    --text-secondary: #b8dcf0;
    --text-muted: #7db3d9;
    --card-bg: rgba(13, 27, 42, 0.95);
    --card-border: rgba(0, 204, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00ccff 50%, #00bfa5 100%);
    --gradient-secondary: linear-gradient(45deg, #003d7a 0%, #007acc 100%);
    --gradient-accent: linear-gradient(90deg, #00ffff 0%, #00ccff 50%, #0066cc 100%);
    --glow-cyan: 0 0 30px rgba(0, 204, 255, 0.5);
    --glow-intense: 0 0 50px rgba(0, 255, 255, 0.6);
    --pulse-glow: 0 0 20px rgba(0, 204, 255, 0.8);
}

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

/* Prevent any element from causing horizontal scroll */
*, *::before, *::after {
    max-width: 100%;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-navy);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 204, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 191, 165, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--dark-navy) 0%, var(--navy) 50%, var(--midnight) 100%);
    background-attachment: fixed;
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    padding-top: 80px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-weight: 400;
}

/* Prevent horizontal scroll */
.container, .container-fluid {
    max-width: 100% !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 204, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Enhanced Sticky Navbar */
.navbar-custom {
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transition: all 0.4s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    overflow: hidden;
}

.navbar-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 204, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.navbar-custom:hover::before {
    left: 100%;
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: var(--pulse-glow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--neon-cyan) !important;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 204, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.navbar-brand:hover::before {
    left: 100%;
}

/* Animated Brand Text */
.navbar-brand {
    animation: brandPulse 3s ease-in-out infinite;
}

@keyframes brandPulse {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
    }
    50% { 
        text-shadow: 0 0 20px rgba(0, 204, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.4);
    }
}

.glow-text {
    color: var(--accent-cyan);
    text-shadow: var(--glow-intense);
    animation: textGlow 2s ease-in-out infinite alternate, typeWriter 4s steps(3) infinite;
    display: inline-block;
    position: relative;
}

@keyframes textGlow {
    from { text-shadow: 0 0 20px var(--accent-cyan); }
    to { text-shadow: 0 0 30px var(--neon-cyan), 0 0 40px var(--accent-cyan); }
}

@keyframes typeWriter {
    0%, 90%, 100% { 
        opacity: 1;
    }
    95% { 
        opacity: 0;
    }
}

/* Brand Name Animation */
.brand-name {
    color: var(--text-primary);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    font-family: 'Space Grotesk', sans-serif;
    min-width: 120px;
    display: inline-block;
}

.brand-name::after {
    content: '|';
    color: var(--accent-cyan);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    margin: 0 0.5rem;
    padding: 0.7rem 1.2rem !important;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: left 0.4s ease;
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

/* Custom Hamburger Menu */
.navbar-toggler-custom {
    border: none;
    padding: 0.25rem;
    background: transparent;
}

.navbar-toggler-custom:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon-custom {
    display: inline-block;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.navbar-toggler-icon-custom span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--accent-cyan);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 0 8px rgba(0, 204, 255, 0.5);
}

.navbar-toggler-icon-custom span:nth-child(1) {
    top: 0px;
}

.navbar-toggler-icon-custom span:nth-child(2) {
    top: 10px;
}

.navbar-toggler-icon-custom span:nth-child(3) {
    top: 20px;
}

/* Hamburger Animation */
.navbar-toggler-custom[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.navbar-toggler-custom[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(2) {
    opacity: 0;
    left: -30px;
}

.navbar-toggler-custom[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Container fixes for proper centering and no scroll issues */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.col, [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure all sections don't cause scroll issues */
section {
    padding: 4rem 0;
    position: relative;
    width: 100%;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 500;
}

/* About Section - Fixed Padding */
.about-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 204, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: var(--glow-cyan);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: var(--glow-cyan); }
    50% { transform: scale(1.05); box-shadow: var(--glow-intense); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 204, 255, 0.5);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    font-weight: 600;
}

.typewriter {
    border-right: 3px solid var(--accent-cyan);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--accent-cyan); }
    51%, 100% { border-color: transparent; }
}

/* Profile Container */
.profile-container {
    position: relative;
    display: inline-block;
    margin: 2rem 0;
    opacity: 1;
    z-index: 1;
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 204, 255, 0.3) 0%, transparent 70%);
    z-index: -1;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Profile Image with Enhanced Effects */
.profile-hero {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 4px solid var(--accent-cyan);
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.6),
        0 0 60px rgba(0, 204, 255, 0.4),
        0 20px 40px rgba(0, 102, 255, 0.3),
        inset 0 0 20px rgba(0, 204, 255, 0.2);
    transition: transform 0.4s ease;
    object-fit: cover;
    display: block;
    opacity: 1 !important;
    z-index: 2;
    aspect-ratio: 1 / 1;
}

.profile-hero:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 0 60px rgba(0, 255, 255, 0.8),
        0 0 80px rgba(0, 204, 255, 0.6),
        0 25px 50px rgba(0, 102, 255, 0.5),
        inset 0 0 30px rgba(0, 204, 255, 0.3);
}

/* Social Links Enhanced - Match CV Button Height */
.social-links {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
    margin-top: 0 !important;
    height: 50px !important;
}

.social-link {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    background: var(--gradient-primary) !important;
    color: white !important;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--glow-intense);
    color: var(--text-primary);
}

/* GitHub */
.social-link:nth-child(1) {
    background: linear-gradient(135deg, #333 0%, #666 100%);
    color: white;
}

/* LinkedIn */
.social-link:nth-child(2) {
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
    color: white;
}

/* Instagram */
.social-link:nth-child(3) {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

/* WhatsApp */
.social-link:nth-child(4) {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.gradient-text {
    /* background: linear-gradient(135deg, var(--primary), var(--secondary)); */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.about-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
    background: linear-gradient(135deg, var(--text-secondary), var(--text-primary), var(--accent-cyan));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

/* About Actions and CV Button - Fixed */
.about-actions {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    min-height: 50px;
}

/* Primary Button and CV Button - Ensure Always Visible */
.btn-primary, .btn-cv {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: white !important;
    padding: 0.75rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    font-size: 1rem !important;
    height: 50px !important;
    min-width: 150px !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.btn-primary::before, .btn-cv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover, .btn-cv:hover {
    background: var(--primary-blue) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 35px rgba(0, 204, 255, 0.6) !important;
}

.btn-primary:hover::before, .btn-cv:hover::before {
    left: 100%;
}

/* Social Links - Fixed */
.social-links {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
}

.social-link {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    border: 2px solid transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 50%;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: var(--glow-intense) !important;
    color: var(--text-primary) !important;
    border-color: var(--accent-cyan) !important;
}

/* Social Links Colors */
.social-github {
    background: linear-gradient(135deg, #333 0%, #666 100%) !important;
    color: white !important;
}

.social-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%) !important;
    color: white !important;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: white !important;
}

.social-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: white !important;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Skills Section - New Layout */
.skills-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.skills-top-row,
.skills-middle-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.skills-bottom-row {
    display: flex;
    justify-content: center;
}

.system-specs-category {
    max-width: 600px;
    width: 100%;
}

.skill-category {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    box-shadow: var(--glow-cyan);
}

.skill-category::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 204, 255, 0.1), transparent);
    animation: cardRotate 12s linear infinite;
    z-index: -1;
}

.skill-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        var(--glow-intense),
        0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--neon-cyan);
}

.category-title {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.skill-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 204, 255, 0.5);
}

.skill-badge:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-top-row,
    .skills-middle-row {
        grid-template-columns: 1fr;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
}

/* Responsive Design - Large Screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px !important;
        margin: 0 auto !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px !important;
        margin: 0 auto !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px !important;
        margin: 0 auto !important;
    }
}

/* Mobile Responsive Fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 17, 40, 0.98);
        border-radius: 15px;
        margin-top: 10px;
        padding: 20px;
        border: 1px solid var(--card-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-link {
        margin: 5px 0;
        text-align: center;
        padding: 12px 20px !important;
        border-radius: 8px;
        background: rgba(0, 204, 255, 0.1);
        border: 1px solid rgba(0, 204, 255, 0.2);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
        width: 100%;
        max-width: 100%;
    }
    
    html {
        width: 100%;
        max-width: 100%;
    }
    
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* Ensure all sections are full width but don't trap scroll */
    section {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .btn-primary, .btn-cv {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .social-links {
        justify-content: center !important;
        width: 100% !important;
    }
    
    /* Fix horizontal scroll on mobile */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .col, [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Enhanced CV Button */
.btn-cv {
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-cv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-cv:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(0, 204, 255, 0.6) !important;
    color: white !important;
}

.btn-cv:hover::before {
    left: 100%;
}

/* Enhanced Social Links */
.social-links {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
}

.social-link {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    border: 2px solid transparent !important;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 10px 25px rgba(0, 204, 255, 0.4) !important;
    border-color: var(--accent-cyan) !important;
}

/* Social Links Colors */
.social-github {
    background: #333 !important;
    color: white !important;
}

.social-linkedin {
    background: #0077b5 !important;
    color: white !important;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433, #dc2743) !important;
    color: white !important;
}

.social-whatsapp {
    background: #25d366 !important;
    color: white !important;
}

/* Full-width Footer Copyright Section - Fixed */
.footer-copyright-section {
    background: linear-gradient(135deg, var(--midnight), var(--dark-navy)) !important;
    border-top: 1px solid var(--card-border) !important;
    padding: 20px 0 !important;
    margin-top: 30px !important;
    position: relative !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

.footer-copyright-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
}

.footer-copyright,
.footer-credits {
    margin: 0 !important;
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
}

.footer-credits .pulse {
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* System Specifications Styles */
.system-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.spec-item {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 191, 165, 0.1));
    border: 1px solid rgba(0, 204, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 204, 255, 0.2);
    border-color: var(--accent-cyan);
}

.spec-label {
    font-weight: 600;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.skill-item {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Experience & Education - Enhanced Ocean Design */
.experience-grid,
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.experience-card,
.education-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 1; /* Ensure visibility by default */
    visibility: visible; /* Ensure visibility by default */
}

.experience-card::before,
.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    box-shadow: var(--glow-cyan);
}

.experience-card::after,
.education-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 204, 255, 0.1), transparent);
    animation: cardRotate 12s linear infinite;
    z-index: -1;
}

@keyframes cardRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.experience-card:hover,
.education-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        var(--glow-intense),
        0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--neon-cyan);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary);
    box-shadow: var(--glow-cyan);
    animation: iconFloat 3s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.card-content {
    flex: 1;
}

.job-title,
.degree-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
}

.company-name,
.institution-name {
    font-size: 1.2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-period,
.study-period {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-achievements,
.education-achievements {
    margin: 1.5rem 0;
}

.achievements-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.achievement {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(0, 204, 255, 0.05);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 0 8px 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.achievement:hover {
    background: rgba(0, 204, 255, 0.1);
    transform: translateX(5px);
    box-shadow: var(--glow-cyan);
}

.achievement::before {
    content: '⚡';
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin-right: 0.8rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(5deg); opacity: 0.8; }
}

.view-cert-btn {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--glow-cyan);
    position: relative;
    overflow: hidden;
}

.view-cert-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.view-cert-btn:hover::before {
    left: 100%;
}

.view-cert-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--glow-intense);
    color: var(--text-primary);
}

.view-cert-btn:hover {
    background: var(--primary-blue);
    color: white;
}

/* Certifications Grid - Now using Bootstrap columns */
/* .certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
} */

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Project Card - Enhanced with Flexible Height */
.project-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 0;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 400px; /* Minimum height instead of fixed */
    display: flex;
    flex-direction: column;
}

/* Certification Card - Simplified */
.certification-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.project-card::before,
.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-intense), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.certification-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-intense), 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Cert Header */
.cert-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 204, 255, 0.3);
}

.cert-info {
    flex: 1;
}

.cert-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
    line-height: 1.3;
}

.cert-issuer {
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin: 0;
}

/* Cert Actions */
.cert-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.cert-actions .btn {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.cert-actions .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 204, 255, 0.4) !important;
}

.project-card:hover,
.certification-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-intense), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px; /* Square aspect ratio */
    overflow: hidden;
    border-radius: 15px; /* Less rounded for more square look */
    flex-shrink: 0; /* Prevent shrinking */
    background: var(--card-border); /* Background color for padding effect */
    padding: 10px; /* Add padding around image */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain to show full image */
    object-position: center; /* Center the image */
    transition: transform 0.4s ease;
    border-radius: 10px; /* Rounded corners for the image itself */
    background: var(--dark-blue); /* Dark background for contrast */
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Use gap for consistent spacing */
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0; /* Remove margin, use gap instead */
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
    line-height: 1.3;
    order: 1; /* Ensure proper order */
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 0; /* Remove margin, use gap instead */
    line-height: 1.5;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Allow more lines for better readability */
    line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    order: 2; /* Ensure proper order */
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0; /* Remove margin, use parent gap instead */
    z-index: 1; /* Ensure it's above other elements */
    order: 3; /* Ensure proper order */
    flex-shrink: 0; /* Prevent shrinking */
}

.project-meta {
    margin-top: auto; /* Keep this at bottom */
    padding-top: 0.8rem;
    border-top: 1px solid var(--card-border);
    flex-shrink: 0;
    z-index: 2; /* Ensure meta is above tech but doesn't overlap */
    order: 4; /* Ensure it's last */
}

.project-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.project-modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border: 2px solid var(--card-border);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-modal-header {
    background: var(--gradient-primary);
    padding: 2rem;
    border-radius: 18px 18px 0 0;
    position: relative;
    overflow: hidden;
}

.project-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.project-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.project-modal-title {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.project-modal-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.project-modal-body {
    padding: 2rem;
}

.project-modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-modal-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    /* Ensure full text display in modal */
    display: block;
    -webkit-line-clamp: none;
    line-clamp: none;
    -webkit-box-orient: unset;
    overflow: visible;
    max-height: none;
    text-overflow: unset;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-modal-tech {
    margin-bottom: 2rem;
}

.project-modal-tech h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tech-badge:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 204, 255, 0.4);
}

.tech-badge:hover::before {
    left: 100%;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.5rem 0 1rem 0; /* Add consistent spacing for modal too */
}

.project-modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-modal-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.project-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5);
    color: white;
}

.project-modal-btn.secondary {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.project-modal-btn.secondary:hover {
    background: var(--accent-cyan);
    color: var(--dark-navy);
}

/* Contact Section - Enhanced */
.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2.5rem 3rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 2px solid var(--card-border);
    transition: all 0.3s ease;
    min-height: 120px;
    height: 120px;
    width: 100%;
    /* max-width: 600px; */
    flex-wrap: nowrap;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan);
    border-color: var(--accent-cyan);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    box-shadow: var(--glow-cyan);
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.contact-details h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}

/* Contact Link Styling */
.contact-link {
    color: var(--accent-cyan) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
    font-family: 'Poppins', sans-serif !important;
    line-height: 1.3 !important;
}

.contact-link:hover {
    color: var(--text-primary) !important;
    text-shadow: 0 0 10px rgba(0, 204, 255, 0.5) !important;
}

.contact-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-value {
    color: var(--text-secondary);
    font-size: 1rem;
    word-break: break-all;
    line-height: 1.4;
}

.contact-value a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--neon-cyan);
}

/* Footer - Enhanced Design */
.footer-section {
    background: var(--navy);
    border-top: 3px solid var(--accent-cyan);
    padding: 3rem 0 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    box-shadow: var(--glow-cyan);
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-name {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.4s ease;
    text-decoration: none;
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--glow-cyan);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--glow-intense);
    color: var(--text-primary);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--card-border);
    text-align: center;
    background: var(--dark-navy);
}

.footer-copyright,
.footer-credits {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.pulse {
    animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive Design */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.4rem; }
    
    .experience-grid,
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experience-card,
    .education-card {
        padding: 1.5rem;
    }
    
    /* Project Card Responsive */
    .project-card {
        min-height: 380px; /* Minimum height on tablet */
    }
    
    .project-image {
        height: 220px; /* Adjusted for tablet */
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom .row {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    
    /* Project Card Mobile */
    .project-card {
        min-height: 340px; /* Minimum height on mobile */
    }
    
    .project-image {
        height: 180px; /* Adjusted for mobile */
    }
    
    .project-content {
        padding: 1rem;
        gap: 0.8rem; /* Smaller gap on mobile */
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 3; /* Allow 3 lines on mobile */
        line-clamp: 3;
        margin-bottom: 0; /* Use gap instead */
    }
    
    /* Ensure full width on small screens but don't trap scroll */
    body {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .col, [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .experience-card,
    .education-card,
    .certification-card {
        padding: 1rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* Force all sections to be full width but don't trap scroll */
    section {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-title {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright,
.footer-credits {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.4rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .profile-hero { width: 320px; height: 320px; }
    .skills-grid { grid-template-columns: 1fr; }
    .about-actions { 
        flex-direction: column; 
        align-items: center; 
        gap: 1.5rem; 
        text-align: center;
    }
    .projects-grid { grid-template-columns: 1fr; }
    section { padding: 3rem 0; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2rem; }
    .profile-hero { width: 280px; height: 280px; }
    /* .container { padding: 0 1rem; } */
}

/* Animated Blobs/Shapes - Enhanced for All Sections */
.animated-blob {
    position: absolute;
    background: linear-gradient(45deg, rgba(0, 204, 255, 0.1), rgba(0, 191, 165, 0.1));
    filter: blur(2px);
    animation: blobFloat 20s ease-in-out infinite;
    z-index: -1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Blob variations with different shapes and sizes */
.blob-1 {
    width: 300px;
    height: 200px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
    border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.15), rgba(0, 102, 204, 0.1));
}

.blob-2 {
    width: 150px;
    height: 180px;
    top: 60%;
    right: -3%;
    animation-delay: -5s;
    border-radius: 60% 40% 40% 60% / 40% 50% 50% 60%;
    background: linear-gradient(225deg, rgba(0, 191, 165, 0.12), rgba(0, 255, 255, 0.08));
}

.blob-3 {
    width: 220px;
    height: 160px;
    bottom: 20%;
    left: 50%;
    animation-delay: -10s;
    border-radius: 70% 30% 50% 50% / 60% 70% 30% 40%;
    background: linear-gradient(45deg, rgba(0, 122, 204, 0.1), rgba(0, 204, 255, 0.12));
}

.blob-4 {
    width: 180px;
    height: 240px;
    top: 30%;
    left: 80%;
    animation-delay: -15s;
    border-radius: 50% 50% 30% 70% / 30% 70% 40% 60%;
    background: linear-gradient(315deg, rgba(0, 255, 255, 0.1), rgba(0, 191, 165, 0.1));
}

.blob-5 {
    width: 120px;
    height: 120px;
    top: 80%;
    right: 20%;
    animation-delay: -20s;
    border-radius: 80% 20% 40% 60% / 50% 70% 30% 50%;
    background: linear-gradient(180deg, rgba(0, 204, 255, 0.08), rgba(0, 102, 204, 0.12));
}

.blob-6 {
    width: 250px;
    height: 130px;
    top: 5%;
    right: 30%;
    animation-delay: -25s;
    border-radius: 30% 70% 60% 40% / 70% 30% 60% 40%;
    background: linear-gradient(90deg, rgba(0, 191, 165, 0.1), rgba(0, 255, 255, 0.08));
}

/* Random morphing animation */
@keyframes blobFloat {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) scale(1) rotate(0deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    20% { 
        transform: translateX(30px) translateY(-40px) scale(1.1) rotate(72deg);
        border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    }
    40% { 
        transform: translateX(-25px) translateY(35px) scale(0.9) rotate(144deg);
        border-radius: 70% 30% 40% 60% / 30% 60% 40% 70%;
    }
    60% { 
        transform: translateX(40px) translateY(-20px) scale(1.05) rotate(216deg);
        border-radius: 30% 70% 60% 40% / 70% 40% 60% 30%;
    }
    80% { 
        transform: translateX(-15px) translateY(45px) scale(0.95) rotate(288deg);
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    }
}

/* Different blob types with varying opacity and blur */
.blob-type-1 {
    filter: blur(1px);
    opacity: 0.6;
}

.blob-type-2 {
    filter: blur(3px);
    opacity: 0.4;
}

.blob-type-3 {
    filter: blur(2px);
    opacity: 0.5;
}

/* Geometric blob shape variations */
.blob-triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
}

.blob-square {
    clip-path: polygon(20% 20%, 80% 20%, 80% 80%, 20% 80%);
    border-radius: 15% 85% 15% 85% / 85% 15% 85% 15%;
}

.blob-circle {
    clip-path: circle(40% at 50% 50%);
    border-radius: 50%;
}

.blob-star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%;
}

.blob-hexagon {
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    border-radius: 25% 75% 25% 75% / 75% 25% 75% 25%;
}

.blob-diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
}

/* Enhanced Modal Styling for Bootstrap Modal */
.modal .modal-dialog {
    max-width: 900px !important;
    margin: 1.5rem auto !important;
}

.modal .modal-content {
    background: var(--card-bg) !important;
    border: 2px solid var(--card-border) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    max-height: 95vh !important;
}

.modal .modal-header {
    background: var(--gradient-primary) !important;
    padding: 1.5rem 2rem !important;
    border-bottom: none !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: modalShimmer 3s ease-in-out infinite;
}

@keyframes modalShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modal .modal-title {
    color: white !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
}

.modal .btn-close {
    /* background: rgba(255, 255, 255, 0.1) !important; */
    border: none !important;
    color: white !important;
    font-size: 1.5rem !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    outline: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.modal .btn-close:hover {
    /* background: rgba(255, 255, 255, 0.3) !important; */
    transform: scale(1.1) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.modal .btn-close:focus {
    /* background: rgba(255, 255, 255, 0.2) !important; */
    color: white !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.modal .modal-body {
    padding: 2rem !important;
    color: var(--text-secondary) !important;
    max-height: 65vh !important;
    overflow-y: auto !important;
}

.modal .project-modal-content img {
    width: 100% !important;
    max-height: 400px !important;
    height: 400px !important;
    object-fit: contain !important; /* Changed to contain */
    object-position: center !important;
    border-radius: 15px !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    background: var(--dark-blue) !important; /* Dark background for contrast */
    padding: 15px !important; /* Add padding around modal image */
}

.modal .project-description-wrapper {
    margin-bottom: 2rem !important;
}

.modal .project-description {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    color: var(--text-secondary) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: pre-wrap !important;
    max-width: 100% !important;
    margin: 0 !important;
    /* Remove text truncation in modal - ensure full text display */
    display: block !important;
    -webkit-line-clamp: none !important;
    line-clamp: none !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    max-height: none !important;
    text-overflow: unset !important;
}

.modal .technologies-section {
    margin-top: 1.5rem !important;
}

.modal .technologies-section h6 {
    color: var(--text-primary) !important;
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 600 !important;
}

.modal .technologies-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
}

.modal .technologies-list .badge {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3) !important;
    border: none !important;
}

.modal .technologies-section h6 {
    color: var(--text-primary) !important;
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.modal .technologies-section h6::before {
    content: '🛠️';
    font-size: 1rem;
}

.modal .technologies-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.8rem !important;
}

.modal .technologies-list .badge {
    background: var(--gradient-primary) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3) !important;
    border: none !important;
}

.modal .modal-footer {
    padding: 1.5rem 2rem !important;
    border-top: 1px solid var(--card-border) !important;
    background: rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
}

.modal .modal-footer .btn {
    padding: 0.8rem 2rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.modal .modal-footer .btn-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3) !important;
}

.modal .modal-footer .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5) !important;
}

.modal .modal-footer .btn-secondary {
    background: transparent !important;
    border: 2px solid var(--card-border) !important;
    color: var(--text-muted) !important;
}

.modal .modal-footer .btn-secondary:hover {
    background: var(--card-border) !important;
    color: var(--text-primary) !important;
    border-color: var(--accent-cyan) !important;
}

/* Particle Animation */
.particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: fixed;
    font-size: 1rem;
    opacity: 0.6;
    animation: float 8s linear infinite;
}

@keyframes float {
    0% { transform: translateY(-100px) translateX(0px) rotate(0deg); }
    100% { transform: translateY(100vh) translateX(50px) rotate(360deg); }
}

/* Smooth animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
