@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Poppins:wght@400;700&family=Open+Sans:wght@400;500;600&display=swap');

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced smooth scrolling for better performance */
* {
    scroll-behavior: smooth;
}

/* Smooth scroll optimization */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Typography Hierarchy */
h1,
h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    /* ExtraBold */
}

h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    /* SemiBold */
}

h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    /* Bold */
}

body,
p,
span,
div {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    /* Regular */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Legacy font class for backward compatibility */
.font-serif {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

/* Light animated gradient background */
.animated-gradient {
    background: linear-gradient(-45deg, rgba(250, 240, 230, 1), rgba(254, 247, 240, 1), rgba(253, 244, 227, 1), rgba(252, 241, 214, 1), rgba(255, 251, 247, 1));
    background-size: 400% 400%;
    animation: gradientBreathe 8s ease-in-out infinite;
    position: relative;
    min-height: 100vh;
}

/* Animated doodles */
.doodle {
    position: fixed;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.doodle-circle {
    width: 60px;
    height: 60px;
    border: 2px solid #d97706;
    border-radius: 50%;
    top: 10%;
    right: 2%;
    animation: float 6s ease-in-out infinite;
}

.doodle-triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid #059669;
    top: 70%;
    left: 3%;
    animation: float 8s ease-in-out infinite reverse;
}

.doodle-square {
    width: 40px;
    height: 40px;
    border: 2px solid #7c3aed;
    transform: rotate(45deg);
    top: 30%;
    right: 3%;
    animation: rotate 10s linear infinite;
}

.doodle-line {
    width: 80px;
    height: 2px;
    background: #dc2626;
    top: 85%;
    right: 5%;
    animation: wiggle 4s ease-in-out infinite;
}

.doodle-dots {
    top: 15%;
    left: 2%;
    animation: pulse 5s ease-in-out infinite;
}

.doodle-dots::before,
.doodle-dots::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #0891b2;
    border-radius: 50%;
}

.doodle-dots::before {
    left: 0;
}

.doodle-dots::after {
    left: 15px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(45deg);
    }

    100% {
        transform: rotate(405deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes gradientBreathe {

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

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 50% 100%;
    }

    75% {
        background-position: 50% 0%;
    }
}

/* Social media container */
.social-media-container {
    overflow: visible;
    padding: 8px 0;
}

/* Animated social icons */
.social-icon {
    transition: transform 0.3s ease;
    animation: wiggle 2s ease-in-out infinite;
    display: inline-block;
    /* Prevent overflow from rotation */
    overflow: visible;
    /* Add some padding to prevent clipping */
    padding: 2px;
}

.social-icon:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(1.5deg);
    }

    75% {
        transform: rotate(-1.5deg);
    }
}

/* Stagger animation delays */
.social-icon:nth-child(1) {
    animation-delay: 0s;
}

.social-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.social-icon:nth-child(3) {
    animation-delay: 1s;
}

.social-icon:nth-child(4) {
    animation-delay: 1.5s;
}

/* Hero Logo Styles */
.logo-container {
    animation: fadeInDown 1s ease-out;
    position: relative;
    display: inline-block;
    overflow: hidden;
    /* Prevent scrollbar from overlay */
    max-width: 120px;
    margin: 0 auto;
}

/* Create overlay with body background */
.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, rgba(250, 240, 230, 1), rgba(254, 247, 240, 1), rgba(253, 244, 227, 1), rgba(252, 241, 214, 1), rgba(255, 251, 247, 1));
    background-size: 400% 400%;
    animation: gradientBreathe 8s ease-in-out infinite;
    border-radius: 8px;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.8;
}

.hero-logo {
    max-width: 120px;
    height: auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;

    /* Make background completely transparent */
    background: transparent;
    mix-blend-mode: multiply;

    /* Remove any white/light backgrounds and enhance transparency */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) contrast(1.3) brightness(0.9) saturate(1.1);
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15)) contrast(1.4) brightness(0.85) saturate(1.2);
}

.logo-container:hover::before {
    opacity: 0.9;
    /* Remove scale to prevent overflow */
}

/* Logo entrance animation */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 80px;
    }

    .logo-container {
        margin-bottom: 1rem;
        max-width: 80px;
    }
}

/* Center image placeholder */
.center-image-placeholder {
    position: relative;
    z-index: 2;
}

/* Profile Image Container */
.profile-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 9s ease-in-out infinite;
}

/* Profile Image Styles */
.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #d1d5db;
    transition: all 0.9s ease;
}


/* Bouncing Animation */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Left and Right Icon Containers */
.left-icons,
.right-icons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.left-icons {
    left: 5%;
}

.right-icons {
    right: 5%;
}

/* Top and Bottom Icon Containers */
.top-icon,
.bottom-icon {
    z-index: 1;
}

.top-icon .tech-icon-wrapper {
    animation-delay: 0.5s;
}

.bottom-icon .tech-icon-wrapper {
    animation-delay: 1.5s;
}

/* Tech Icon Wrapper */
.tech-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: gentleFloat 6s ease-in-out infinite;
}

.tech-icon-wrapper:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Stagger the animation delays for left icons - Column 1 */
.left-icons>div:nth-child(1) .tech-icon-wrapper:nth-child(1) {
    animation-delay: 0s;
}

.left-icons>div:nth-child(1) .tech-icon-wrapper:nth-child(2) {
    animation-delay: 2s;
}

.left-icons>div:nth-child(1) .tech-icon-wrapper:nth-child(3) {
    animation-delay: 4s;
}

/* Stagger the animation delays for left icons - Column 2 */
.left-icons>div:nth-child(2) .tech-icon-wrapper:nth-child(1) {
    animation-delay: 1s;
}

.left-icons>div:nth-child(2) .tech-icon-wrapper:nth-child(2) {
    animation-delay: 3s;
}

.left-icons>div:nth-child(2) .tech-icon-wrapper:nth-child(3) {
    animation-delay: 5s;
}

/* Stagger the animation delays for right icons - Column 1 */
.right-icons>div:nth-child(1) .tech-icon-wrapper:nth-child(1) {
    animation-delay: 0.5s;
}

.right-icons>div:nth-child(1) .tech-icon-wrapper:nth-child(2) {
    animation-delay: 2.5s;
}

.right-icons>div:nth-child(1) .tech-icon-wrapper:nth-child(3) {
    animation-delay: 4.5s;
}

/* Stagger the animation delays for right icons - Column 2 */
.right-icons>div:nth-child(2) .tech-icon-wrapper:nth-child(1) {
    animation-delay: 1.5s;
}

.right-icons>div:nth-child(2) .tech-icon-wrapper:nth-child(2) {
    animation-delay: 3.5s;
}

.right-icons>div:nth-child(2) .tech-icon-wrapper:nth-child(3) {
    animation-delay: 5.5s;
}

/* Gentle floating animation */
@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}





/* Mobile Responsive - Hide second columns on small screens */
@media (max-width: 768px) {

    /* Hide second columns on mobile */
    .left-icons>div:nth-child(2),
    .right-icons>div:nth-child(2) {
        display: none;
    }

    /* Adjust positioning for mobile */
    .left-icons {
        left: 2%;
    }

    .right-icons {
        right: 2%;
    }

    /* Reduce spacing between icons on mobile */
    .left-icons>div,
    .right-icons>div {
        space-y: 2;
    }

    /* Smaller tech icons on mobile */
    .tech-icon-wrapper {
        padding: 0.4rem;
    }

    .tech-icon-wrapper svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Smaller profile image on mobile */
    .profile-image {
        width: 96px;
        height: 96px;
    }

    /* Adjust top and bottom icons for mobile */
    .top-icon {
        top: -10px;
    }

    .bottom-icon {
        bottom: -10px;
    }

    /* Reduce container height on mobile */
    .tech-stack-container {
        min-height: 400px !important;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .left-icons {
        left: 3%;
    }

    .right-icons {
        right: 3%;
    }

    .tech-icon-wrapper svg {
        width: 26px !important;
        height: 26px !important;
    }
}

/* Tech stack container */
.tech-stack-container {
    position: relative;
}

.tech-section-content {
    position: relative;
    z-index: 1;
}