/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Completely Redesigned */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 15s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    right: 10%;
    animation-delay: 20s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg); 
        opacity: 0.7;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.title-line {
    display: block;
    font-weight: 400;
    opacity: 0.9;
}

.gradient-text {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: block;
    margin: 0.5rem 0;
}

.animated-text {
    position: relative;
    display: inline-block;
    min-height: 3rem;
}

.text-slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: textSlide 8s infinite;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-slide:nth-child(1) { animation-delay: 0s; }
.text-slide:nth-child(2) { animation-delay: 2s; }
.text-slide:nth-child(3) { animation-delay: 4s; }
.text-slide:nth-child(4) { animation-delay: 6s; }

@keyframes textSlide {
    0%, 20%, 100% {
        opacity: 0;
        transform: translateY(20px);
    }
    25%, 45% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    animation: slideInLeft 1s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: slideInLeft 1s ease-out 0.8s both;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.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.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: slideInLeft 1s ease-out 1s both;
}

.scroll-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.scroll-indicator {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 100%;
    height: 6px;
    background: #FFD700;
    border-radius: 3px;
    position: absolute;
    top: 0;
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    50% { top: 100%; opacity: 0; }
    100% { top: 0; opacity: 1; }
}

/* Hero Visual Section */
.hero-visual {
    position: relative;
    height: 500px;
    animation: slideInRight 1s ease-out 0.5s both;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-mockup {
    position: relative;
    width: 100%;
    height: 100%;
}

.mockup-device {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.mockup-phone {
    width: 120px;
    height: 240px;
    top: 20%;
    left: 20%;
    animation: floatDevice 6s ease-in-out infinite;
}

.mockup-tablet {
    width: 200px;
    height: 150px;
    top: 40%;
    right: 15%;
    animation: floatDevice 6s ease-in-out infinite 2s;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    padding: 10px;
    box-sizing: border-box;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.app-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

.app-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.content-card {
    height: 20px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 5px;
}

.dashboard-header {
    margin-bottom: 15px;
}

.dashboard-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.grid-item {
    height: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

@keyframes floatDevice {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 8s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 80px;
}

.floating-card i {
    font-size: 1.5rem;
    color: #667eea;
}

.floating-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.card-3 {
    top: 60%;
    right: 30%;
    animation-delay: 4s;
}

.card-4 {
    bottom: 10%;
    right: 5%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Animation Keyframes */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills {
    margin-top: 3rem;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-category h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.profile-image {
    margin-bottom: 2rem;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f0f0f0; /* Fallback background */
    max-width: 100%;
    height: auto;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.placeholder-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.placeholder-image i {
    font-size: 3.5rem;
    color: white;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.profile-info p {
    color: #666;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Specific social link colors */
.social-link[href*="linkedin"]:hover {
    background: #0077b5;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3);
}

.social-link[href*="behance"]:hover {
    background: #1769ff;
    box-shadow: 0 8px 20px rgba(23, 105, 255, 0.3);
}

.social-link[href*="whatsapp"]:hover {
    background: #25d366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.social-link[href*="mailto"]:hover {
    background: #ea4335;
    box-shadow: 0 8px 20px rgba(234, 67, 53, 0.3);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    padding-top: 60px; /* Space for the header */
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .project-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    color: white;
    padding: 2rem;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Device Mockups */
.device-mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.portfolio-item:hover .device-mockup {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Mobile Mockup */
.mobile-mockup .mockup-frame {
    width: 140px;
    height: 280px;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.mobile-mockup .mockup-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.mobile-mockup .mockup-screen {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.mobile-mockup .mockup-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop Mockup */
.desktop-mockup .mockup-frame {
    width: 300px;
    height: 200px;
    background: #1a1a1a;
    border-radius: 8px 8px 0 0;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.desktop-mockup .mockup-frame::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 0 0 4px 4px;
}

.desktop-mockup .mockup-screen {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.desktop-mockup .mockup-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom backgrounds for mobile app portfolio items */
.portfolio-item[data-category="mobile"]:nth-child(1) .portfolio-overlay {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9) 0%, rgba(255, 152, 0, 0.9) 100%);
}

.portfolio-item[data-category="mobile"]:nth-child(2) .portfolio-overlay {
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.9) 0%, rgba(255, 193, 7, 0.9) 100%);
}

.portfolio-item[data-category="mobile"]:nth-child(3) .portfolio-overlay {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(139, 195, 74, 0.9) 100%);
}

.portfolio-item[data-category="mobile"]:nth-child(5) .portfolio-overlay {
    background: linear-gradient(135deg, rgba(33, 33, 33, 0.95) 0%, rgba(66, 66, 66, 0.95) 100%);
}

/* Portfolio Item Categories */
.portfolio-item[data-category="web"] .portfolio-overlay {
    background: rgba(118, 75, 162, 0.9);
}

/* Responsive Design for Portfolio */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .device-mockup {
        transform: translate(-50%, -50%) scale(0.6);
    }
    
    .portfolio-item:hover .device-mockup {
        transform: translate(-50%, -50%) scale(0.7);
    }
    
    .mobile-mockup .mockup-frame {
        width: 120px;
        height: 240px;
    }
    
    .desktop-mockup .mockup-frame {
        width: 250px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .portfolio-image {
        height: 180px;
    }
    
    .device-mockup {
        transform: translate(-50%, -50%) scale(0.5);
    }
    
    .portfolio-item:hover .device-mockup {
        transform: translate(-50%, -50%) scale(0.6);
    }
    
    .mobile-mockup .mockup-frame {
        width: 100px;
        height: 200px;
    }
    
    .desktop-mockup .mockup-frame {
        width: 200px;
        height: 130px;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Contact Form Enhancements */
.message-counter {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: right;
}

.message-counter.valid {
    color: #28a745;
}

.message-counter.invalid {
    color: #dc3545;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

.form-group label::after {
    content: ' *';
    color: #dc3545;
}

/* Form focus styling only */
.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #ccc;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    background: #444;
    color: #ccc;
}

.footer-social .social-link:hover {
    background: #667eea;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        padding: 100px 0 50px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .hero-visual {
        height: 350px;
        margin-top: 2rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 2.5rem;
        margin-top: 2rem;
    }

    .stat-item {
        text-align: center;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* About Section */
    .about {
        padding: 80px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-text {
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .profile-card {
        max-width: 300px;
        margin: 0 auto;
    }

    .profile-photo {
        width: 200px;
        height: 200px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .skill-category {
        text-align: left;
        padding: 1.5rem;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    /* Portfolio Section */
    .portfolio {
        padding: 80px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
    }

    .portfolio-item {
        margin-bottom: 2rem;
    }

    .portfolio-image {
        height: 280px;
    }

    .portfolio-card-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .portfolio-card-header h3 {
        font-size: 1.2rem;
    }

    .btn-case-study {
        width: 100%;
        max-width: 200px;
        padding: 0.8rem 1.5rem;
    }

    /* Contact Section */
    .contact {
        padding: 80px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        gap: 2rem;
        margin-top: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }

    .contact-item i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-social {
        justify-content: center;
    }

    /* Section Headers */
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    /* Form Improvements */
    .form-submit-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .success-notification {
        text-align: center;
        justify-content: center;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 5px;
    }

    .hero-visual {
        height: 300px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-item {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 0;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    /* About Section */
    .profile-photo {
        width: 180px;
        height: 180px;
    }

    .skills-grid {
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.2rem;
    }

    .skill-category h4 {
        font-size: 1.1rem;
    }

    /* Portfolio Section */
    .portfolio-image {
        height: 250px;
    }

    .portfolio-card-header {
        padding: 0.8rem;
    }

    .portfolio-card-header h3 {
        font-size: 1.1rem;
    }

    .btn-case-study {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Contact Section */
    .contact-item {
        padding: 1.2rem;
    }

    .contact-item i {
        font-size: 1.8rem;
    }

    .contact-item h4 {
        font-size: 1.1rem;
    }

    /* Section Headers */
    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Form */
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .success-notification {
        font-size: 0.85rem;
        padding: 0.8rem;
    }

    .success-notification i {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-links {
        gap: 1.5rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Portfolio Placeholders */
.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #667eea;
    text-align: center;
    padding: 2rem;
}

.project-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.project-placeholder h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.project-placeholder p {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.mockup-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #667eea;
    text-align: center;
    padding: 1rem;
}

.mockup-placeholder i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.mockup-placeholder p {
    font-size: 0.7rem;
    color: #333;
    margin: 0;
    font-weight: 500;
}

/* Portfolio Card Header */
.portfolio-card-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 4;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.portfolio-card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.btn-case-study {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-case-study:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Responsive adjustments for portfolio card header */
@media (max-width: 768px) {
    .portfolio-card-header {
        padding: 0.75rem;
    }
    
    .portfolio-card-header h3 {
        font-size: 1rem;
    }
    
    .btn-case-study {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .portfolio-item {
        padding-top: 50px;
    }
}

@media (max-width: 480px) {
    .portfolio-card-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.5rem;
    }
    
    .portfolio-card-header h3 {
        font-size: 0.9rem;
    }
    
    .btn-case-study {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .portfolio-item {
        padding-top: 70px;
    }
}

/* Form submit container and success notification */
.form-submit-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.success-notification {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #28a745;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.success-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.success-notification i {
    font-size: 1rem;
}

/* Responsive design for success notification */
@media (max-width: 768px) {
    .form-submit-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .success-notification {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .success-notification {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .success-notification i {
        font-size: 0.9rem;
    }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Better touch targets */
    .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    .btn {
        min-height: 48px; /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved spacing */
    .section {
        padding: 60px 0;
    }
    
    /* Better text readability */
    .hero-description,
    .section-subtitle,
    .about-text p {
        line-height: 1.6;
    }
    
    /* Improved portfolio cards */
    .portfolio-item {
        border-radius: 20px;
        overflow: hidden;
    }
    
    .portfolio-card-header {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }
    
    /* Better form experience */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Improved contact items */
    .contact-item {
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .contact-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    
    /* Better social links */
    .social-link {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile optimizations */
    .hero {
        padding: 80px 0 40px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    /* Better button sizing */
    .btn {
        min-height: 44px;
        font-size: 0.95rem;
    }
    
    /* Improved navigation */
    .nav-menu {
        top: 60px;
        padding: 1.5rem 0;
    }
    
    .nav-link {
        padding: 0.8rem 0;
        font-size: 1rem;
    }
    
    /* Better portfolio layout */
    .portfolio-grid {
        gap: 1.5rem;
    }
    
    .portfolio-item {
        margin-bottom: 1.5rem;
    }
    
    /* Improved contact form */
    .contact-form {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        backdrop-filter: blur(10px);
    }
} 